1
1
error: 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
3
3
|
4
4
LL | const ATOMIC: AtomicUsize;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -19,55 +19,55 @@ LL | declare_const!(ANOTHER_ATOMIC: AtomicUsize = Self::ATOMIC);
19
19
= note: this error originates in the macro `declare_const` (in Nightly builds, run with -Z macro-backtrace for more info)
20
20
21
21
error: 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
23
23
|
24
24
LL | const TO_BE_CONCRETE: AtomicUsize = AtomicUsize::new(11);
25
25
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
26
27
27
error: 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
29
29
|
30
30
LL | const TO_BE_UNFROZEN: Self::ToBeUnfrozen = AtomicUsize::new(13);
31
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
33
33
error: 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
35
35
|
36
36
LL | const WRAPPED_TO_BE_UNFROZEN: Wrapper<Self::ToBeUnfrozen> = Wrapper(AtomicUsize::new(14));
37
37
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
38
39
39
error: 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
41
41
|
42
42
LL | const BOUNDED: T::ToBeBounded;
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
44
45
45
error: 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
47
47
|
48
48
LL | const SELF: Self = AtomicUsize::new(17);
49
49
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
50
51
51
error: 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
53
53
|
54
54
LL | const WRAPPED_SELF: Option<Self> = Some(AtomicUsize::new(21));
55
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
56
57
57
error: 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
59
59
|
60
60
LL | const INDIRECT: Cell<*const T>;
61
61
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62
62
63
63
error: 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
65
65
|
66
66
LL | const ATOMIC: AtomicUsize = AtomicUsize::new(18);
67
67
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68
68
69
69
error: 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
71
71
|
72
72
LL | const BOUNDED_ASSOC_TYPE: T::ToBeBounded = AtomicUsize::new(19);
73
73
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments