@@ -47,15 +47,6 @@ LL | let _once_mut = &mut ONCE_INIT; //~ ERROR interior mutability
4747 |
4848 = help: assign this const to a local or static variable, and use the variable here
4949
50- error: non-binding let on a type that implements `Drop`
51- --> $DIR/others.rs:72:5
52- |
53- LL | let _ = &ATOMIC_TUPLE; //~ ERROR interior mutability
54- | ^^^^^^^^^^^^^^^^^^^^^^
55- |
56- = note: `#[deny(clippy::let_underscore_drop)]` on by default
57- = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
58-
5950error: a `const` item with interior mutability should not be borrowed
6051 --> $DIR/others.rs:72:14
6152 |
@@ -104,22 +95,6 @@ LL | let _ = ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability
10495 |
10596 = help: assign this const to a local or static variable, and use the variable here
10697
107- error: non-binding let on a type that implements `Drop`
108- --> $DIR/others.rs:83:5
109- |
110- LL | let _ = ATOMIC_TUPLE.1.into_iter();
111- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112- |
113- = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
114-
115- error: non-binding let on a type that implements `Drop`
116- --> $DIR/others.rs:85:5
117- |
118- LL | let _ = &{ ATOMIC_TUPLE };
119- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
120- |
121- = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
122-
12398error: a `const` item with interior mutability should not be borrowed
12499 --> $DIR/others.rs:87:5
125100 |
@@ -136,5 +111,5 @@ LL | assert_eq!(CELL.get(), 6); //~ ERROR interior mutability
136111 |
137112 = help: assign this const to a local or static variable, and use the variable here
138113
139- error: aborting due to 17 previous errors
114+ error: aborting due to 14 previous errors
140115
0 commit comments