We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fe51df commit 5353301Copy full SHA for 5353301
library/core/src/array/mod.rs
@@ -402,7 +402,7 @@ mod default_impls {
402
assert_eq!(std::mem::size_of::<[(); N]>(), 0);
403
// SAFETY: it is always valid to use `zeroed` for zero-sized value.
404
let arr: [(); N] = unsafe { std::mem::zeroed() };
405
- arr.map(DefaultHack::default_hack)
+ arr.map(|_unit| DefaultHack::default_hack())
406
}
407
408
0 commit comments