@@ -47,15 +47,6 @@ LL | let _once_mut = &mut ONCE_INIT; //~ ERROR interior mutability
47
47
|
48
48
= help: assign this const to a local or static variable, and use the variable here
49
49
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
-
59
50
error: a `const` item with interior mutability should not be borrowed
60
51
--> $DIR/others.rs:72:14
61
52
|
@@ -104,22 +95,6 @@ LL | let _ = ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability
104
95
|
105
96
= help: assign this const to a local or static variable, and use the variable here
106
97
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
-
123
98
error: a `const` item with interior mutability should not be borrowed
124
99
--> $DIR/others.rs:87:5
125
100
|
@@ -136,5 +111,5 @@ LL | assert_eq!(CELL.get(), 6); //~ ERROR interior mutability
136
111
|
137
112
= help: assign this const to a local or static variable, and use the variable here
138
113
139
- error: aborting due to 17 previous errors
114
+ error: aborting due to 14 previous errors
140
115
0 commit comments