mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
5 lines
258 B
Rust
5 lines
258 B
Rust
const UNINIT: core::mem::MaybeUninit<core::cell::Cell<&'static ()>> = core::mem::MaybeUninit::uninit();
|
|
//~^ ERROR: a `const` item should never be interior mutable
|
|
//~| NOTE: `-D clippy::declare-interior-mutable-const` implied by `-D warnings`
|
|
|
|
fn main() {}
|