We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
allow(default_could_be_derived)
Default
1 parent 0411790 commit 874b484Copy full SHA for 874b484
library/core/src/default.rs
@@ -77,7 +77,7 @@
77
/// your type that should be the default:
78
///
79
/// ```
80
-/// # #![allow(dead_code)]
+/// # #![allow(dead_code, default_could_be_derived)]
81
/// enum Kind {
82
/// A,
83
/// B,
@@ -121,7 +121,7 @@ pub trait Default: Sized {
121
/// Making your own:
122
123
124
- /// # #[allow(dead_code)]
+ /// # #![allow(dead_code, default_could_be_derived)]
125
126
127
0 commit comments