Skip to content

Commit 1f4507a

Browse files
authored
Allow new warning on recent nightly versions (#1376)
1 parent 1db3aa4 commit 1f4507a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rand_core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ pub trait SeedableRng: Sized {
245245
///
246246
/// const N: usize = 64;
247247
/// pub struct MyRngSeed(pub [u8; N]);
248+
/// # #[allow(dead_code)]
248249
/// pub struct MyRng(MyRngSeed);
249250
///
250251
/// impl Default for MyRngSeed {

0 commit comments

Comments
 (0)