mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-23 03:23:33 +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() {}
|