11error: a `const` item should never be interior mutable
2- --> tests/ui/declare_interior_mutable_const/traits.rs:15 :5
2+ --> tests/ui/declare_interior_mutable_const/traits.rs:16 :5
33 |
44LL | const ATOMIC: AtomicUsize;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -19,55 +19,55 @@ LL | declare_const!(ANOTHER_ATOMIC: AtomicUsize = Self::ATOMIC);
1919 = note: this error originates in the macro `declare_const` (in Nightly builds, run with -Z macro-backtrace for more info)
2020
2121error: a `const` item should never be interior mutable
22- --> tests/ui/declare_interior_mutable_const/traits.rs:43 :5
22+ --> tests/ui/declare_interior_mutable_const/traits.rs:44 :5
2323 |
2424LL | const TO_BE_CONCRETE: AtomicUsize = AtomicUsize::new(11);
2525 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
2727error: a `const` item should never be interior mutable
28- --> tests/ui/declare_interior_mutable_const/traits.rs:68 :5
28+ --> tests/ui/declare_interior_mutable_const/traits.rs:69 :5
2929 |
3030LL | const TO_BE_UNFROZEN: Self::ToBeUnfrozen = AtomicUsize::new(13);
3131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3232
3333error: a `const` item should never be interior mutable
34- --> tests/ui/declare_interior_mutable_const/traits.rs:69 :5
34+ --> tests/ui/declare_interior_mutable_const/traits.rs:70 :5
3535 |
3636LL | const WRAPPED_TO_BE_UNFROZEN: Wrapper<Self::ToBeUnfrozen> = Wrapper(AtomicUsize::new(14));
3737 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3838
3939error: a `const` item should never be interior mutable
40- --> tests/ui/declare_interior_mutable_const/traits.rs:88 :5
40+ --> tests/ui/declare_interior_mutable_const/traits.rs:89 :5
4141 |
4242LL | const BOUNDED: T::ToBeBounded;
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4444
4545error: a `const` item should never be interior mutable
46- --> tests/ui/declare_interior_mutable_const/traits.rs:116 :5
46+ --> tests/ui/declare_interior_mutable_const/traits.rs:117 :5
4747 |
4848LL | const SELF: Self = AtomicUsize::new(17);
4949 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050
5151error: a `const` item should never be interior mutable
52- --> tests/ui/declare_interior_mutable_const/traits.rs:117 :5
52+ --> tests/ui/declare_interior_mutable_const/traits.rs:118 :5
5353 |
5454LL | const WRAPPED_SELF: Option<Self> = Some(AtomicUsize::new(21));
5555 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5656
5757error: a `const` item should never be interior mutable
58- --> tests/ui/declare_interior_mutable_const/traits.rs:125 :5
58+ --> tests/ui/declare_interior_mutable_const/traits.rs:126 :5
5959 |
6060LL | const INDIRECT: Cell<*const T>;
6161 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6262
6363error: a `const` item should never be interior mutable
64- --> tests/ui/declare_interior_mutable_const/traits.rs:141 :5
64+ --> tests/ui/declare_interior_mutable_const/traits.rs:142 :5
6565 |
6666LL | const ATOMIC: AtomicUsize = AtomicUsize::new(18);
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6868
6969error: a `const` item should never be interior mutable
70- --> tests/ui/declare_interior_mutable_const/traits.rs:147 :5
70+ --> tests/ui/declare_interior_mutable_const/traits.rs:148 :5
7171 |
7272LL | const BOUNDED_ASSOC_TYPE: T::ToBeBounded = AtomicUsize::new(19);
7373 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments