Skip to content

Commit d7b4b01

Browse files
committed
core: document default attribute stabilization
1 parent c8813dd commit d7b4b01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/default.rs

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ use crate::ascii::Char as AsciiChar;
7171
///
7272
/// You cannot use the `#[default]` attribute on non-unit or non-exhaustive variants.
7373
///
74+
/// The `#[default]` attribute was stabilized in Rust 1.62.0.
75+
///
7476
/// ## How can I implement `Default`?
7577
///
7678
/// Provide an implementation for the `default()` method that returns the value of

0 commit comments

Comments
 (0)