1 error: a `const` item with interior mutability should not be borrowed
2 --> $DIR/traits.rs:15:18
4 LL | let _ = &Self::ATOMIC; //~ ERROR interior mutable
7 = help: assign this const to a local or static variable, and use the variable here
8 = note: `-D clippy::borrow-interior-mutable-const` implied by `-D warnings`
10 error: a `const` item with interior mutability should not be borrowed
11 --> $DIR/traits.rs:26:18
13 LL | let _ = &Self::ATOMIC; //~ ERROR interior mutable
16 = help: assign this const to a local or static variable, and use the variable here
18 error: a `const` item with interior mutability should not be borrowed
19 --> $DIR/traits.rs:51:18
21 LL | let _ = &Self::TO_BE_CONCRETE; //~ ERROR interior mutable
22 | ^^^^^^^^^^^^^^^^^^^^
24 = help: assign this const to a local or static variable, and use the variable here
26 error: a `const` item with interior mutability should not be borrowed
27 --> $DIR/traits.rs:86:18
29 LL | let _ = &Self::TO_BE_UNFROZEN; //~ ERROR interior mutable
30 | ^^^^^^^^^^^^^^^^^^^^
32 = help: assign this const to a local or static variable, and use the variable here
34 error: a `const` item with interior mutability should not be borrowed
35 --> $DIR/traits.rs:87:18
37 LL | let _ = &Self::WRAPPED_TO_BE_UNFROZEN; //~ ERROR interior mutable
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = help: assign this const to a local or static variable, and use the variable here
42 error: a `const` item with interior mutability should not be borrowed
43 --> $DIR/traits.rs:109:18
45 LL | let _ = &Self::BOUNDED; //~ ERROR interior mutable
48 = help: assign this const to a local or static variable, and use the variable here
50 error: a `const` item with interior mutability should not be borrowed
51 --> $DIR/traits.rs:122:18
53 LL | let _ = &Self::BOUNDED; //~ ERROR interior mutable
56 = help: assign this const to a local or static variable, and use the variable here
58 error: a `const` item with interior mutability should not be borrowed
59 --> $DIR/traits.rs:151:18
61 LL | let _ = &Self::SELF; //~ ERROR interior mutable
64 = help: assign this const to a local or static variable, and use the variable here
66 error: a `const` item with interior mutability should not be borrowed
67 --> $DIR/traits.rs:152:18
69 LL | let _ = &Self::WRAPPED_SELF; //~ ERROR interior mutable
72 = help: assign this const to a local or static variable, and use the variable here
74 error: a `const` item with interior mutability should not be borrowed
75 --> $DIR/traits.rs:162:18
77 LL | let _ = &Self::INDIRECT; //~ ERROR interior mutable
80 = help: assign this const to a local or static variable, and use the variable here
82 error: a `const` item with interior mutability should not be borrowed
83 --> $DIR/traits.rs:172:18
85 LL | let _ = &Self::INDIRECT; //~ ERROR interior mutable
88 = help: assign this const to a local or static variable, and use the variable here
90 error: a `const` item with interior mutability should not be borrowed
91 --> $DIR/traits.rs:191:18
93 LL | let _ = &Self::ATOMIC; //~ ERROR interior mutable
96 = help: assign this const to a local or static variable, and use the variable here
98 error: a `const` item with interior mutability should not be borrowed
99 --> $DIR/traits.rs:195:18
101 LL | let _ = &Self::BOUNDED_ASSOC_TYPE; //~ ERROR interior mutable
102 | ^^^^^^^^^^^^^^^^^^^^^^^^
104 = help: assign this const to a local or static variable, and use the variable here
106 error: a `const` item with interior mutability should not be borrowed
107 --> $DIR/traits.rs:200:5
109 LL | u64::ATOMIC.store(5, Ordering::SeqCst); //~ ERROR interior mutability
112 = help: assign this const to a local or static variable, and use the variable here
114 error: a `const` item with interior mutability should not be borrowed
115 --> $DIR/traits.rs:201:16
117 LL | assert_eq!(u64::ATOMIC.load(Ordering::SeqCst), 9); //~ ERROR interior mutability
120 = help: assign this const to a local or static variable, and use the variable here
122 error: aborting due to 15 previous errors