We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Default
1 parent 939b143 commit a5951d4Copy full SHA for a5951d4
library/core/src/default.rs
@@ -80,6 +80,7 @@
80
/// bar: f32,
81
/// }
82
/// ```
83
+#[cfg_attr(not(test), rustc_diagnostic_item = "Default")]
84
#[stable(feature = "rust1", since = "1.0.0")]
85
pub trait Default: Sized {
86
/// Returns the "default value" for a type.
0 commit comments