Skip to content

Commit 4d2f468

Browse files
committed
allow(default_could_be_derived) in Default examples
1 parent 0411790 commit 4d2f468

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
@@ -77,6 +77,7 @@
7777
/// your type that should be the default:
7878
///
7979
/// ```
80+
/// # #![cfg_attr(not(bootstrap), allow(default_could_be_derived))]
8081
/// # #![allow(dead_code)]
8182
/// enum Kind {
8283
/// A,
@@ -121,6 +122,7 @@ pub trait Default: Sized {
121122
/// Making your own:
122123
///
123124
/// ```
125+
/// # #![cfg_attr(not(bootstrap), allow(default_could_be_derived))]
124126
/// # #[allow(dead_code)]
125127
/// enum Kind {
126128
/// A,

0 commit comments

Comments
 (0)