2024-06-13 10:30:48 +00:00
|
|
|
error: a `const` item should not be interior mutable
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/crashes/ice-9445.rs:1:1
|
2023-06-16 16:02:11 +00:00
|
|
|
|
|
|
|
|
LL | const UNINIT: core::mem::MaybeUninit<core::cell::Cell<&'static ()>> = core::mem::MaybeUninit::uninit();
|
2024-06-13 10:30:48 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-06-16 16:02:11 +00:00
|
|
|
|
|
2024-06-13 10:30:48 +00:00
|
|
|
= help: consider making this `Sync` so that it can go in a static item or using a `thread_local`
|
2023-06-16 16:02:11 +00:00
|
|
|
= note: `-D clippy::declare-interior-mutable-const` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::declare_interior_mutable_const)]`
|
2023-06-16 16:02:11 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-06-16 16:02:11 +00:00
|
|
|
|