fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: a `const` item should never be interior mutable 2 --> $DIR/ice-9445.rs:1:1 3 | 4LL | const UNINIT: core::mem::MaybeUninit<core::cell::Cell<&'static ()>> = core::mem::MaybeUninit::uninit(); 5 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | | 7 | make this a static item (maybe with lazy_static) 8 | 9 = note: `-D clippy::declare-interior-mutable-const` implied by `-D warnings` 10 = help: to override `-D warnings` add `#[allow(clippy::declare_interior_mutable_const)]` 11 12error: aborting due to previous error 13