2023-06-16 11:02:11 -05:00
|
|
|
error: a `const` item should never be interior mutable
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/crashes/ice-9445.rs:1:1
|
2023-06-16 11:02:11 -05:00
|
|
|
|
|
|
|
|
LL | const UNINIT: core::mem::MaybeUninit<core::cell::Cell<&'static ()>> = core::mem::MaybeUninit::uninit();
|
|
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| make this a static item (maybe with lazy_static)
|
|
|
|
|
|
|
|
|
= note: `-D clippy::declare-interior-mutable-const` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::declare_interior_mutable_const)]`
|
2023-06-16 11:02:11 -05:00
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-06-16 11:02:11 -05:00
|
|
|
|