fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
583 B13 linesraw
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