Skip to content

Tracking Issue for const_default #143894

Open

Description

@fee1-dead

Feature gate: #![feature(const_default)]

This is a tracking issue for Default in const fn

Public API

// core::default

pub const trait Default: Sized {
    fn default() -> Self;
}

impl const Default types:

  • ()
  • bool
  • char
  • std::ascii::Char
  • usize
  • u8
  • u16
  • u32
  • u64
  • u128
  • i8
  • i16
  • i32
  • i64
  • i128
  • f16
  • f32
  • f64
  • f128
  • std::marker::PhantomData<T>
  • Option<T>
  • std::iter::Empty<T>
  • std::ptr::Alignment
  • &[T]
  • &mut [T]
  • &str
  • &mut str
  • String
  • Vec<T>

Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

Unresolved Questions

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩

Activity

  1. added
    T-libs-api[DEPRECATED; DO NOT USE]
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Jul 13, 2025
  2. added a commit that references this issue on Nov 17, 2025
  3. added 3 commits that reference this issue on Nov 17, 2025
  4. added a commit that references this issue on Nov 17, 2025
  5. added a commit that references this issue on Nov 30, 2025
  6. added 2 commits that reference this issue on Dec 20, 2025
  7. added a commit that references this issue on Dec 21, 2025
  8. added a commit that references this issue on Dec 21, 2025
  9. added a commit that references this issue on Dec 21, 2025
  10. 19 remaining items

  11. added a commit that references this issue on Jun 19, 2026
  12. added a commit that references this issue on Jun 19, 2026
  13. added a commit that references this issue on Jun 19, 2026
  14. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    and removed
    T-libs-api[DEPRECATED; DO NOT USE]
    on Aug 12, 2026
  15. added 4 commits that reference this issue on Nov 10, 2026
  16. added a commit that references this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions