Skip to content

Commit

Permalink
core: document default attribute stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
tmfink committed Mar 17, 2024
1 parent c8813dd commit d7b4b01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ use crate::ascii::Char as AsciiChar;
///
/// You cannot use the `#[default]` attribute on non-unit or non-exhaustive variants.
///
/// The `#[default]` attribute was stabilized in Rust 1.62.0.
///
/// ## How can I implement `Default`?
///
/// Provide an implementation for the `default()` method that returns the value of
Expand Down

0 comments on commit d7b4b01

Please sign in to comment.