]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: non-binding `let` on a type that implements `Drop` |
2 | --> $DIR/let_underscore_drop.rs:16:5 | |
3 | | | |
4 | LL | let _ = Box::new(()); | |
5 | | ^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::let-underscore-drop` implied by `-D warnings` | |
8 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` | |
9 | ||
10 | error: non-binding `let` on a type that implements `Drop` | |
11 | --> $DIR/let_underscore_drop.rs:17:5 | |
12 | | | |
13 | LL | let _ = Droppable; | |
14 | | ^^^^^^^^^^^^^^^^^^ | |
15 | | | |
16 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` | |
17 | ||
18 | error: non-binding `let` on a type that implements `Drop` | |
19 | --> $DIR/let_underscore_drop.rs:18:5 | |
20 | | | |
21 | LL | let _ = Some(Droppable); | |
22 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
23 | | | |
24 | = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop` | |
25 | ||
26 | error: aborting due to 3 previous errors | |
27 |