rust/tests/ui/crashes/ice-9445.rs
2023-08-22 17:18:11 +02:00

6 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() {}