]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/let_underscore_drop.stderr
Rollup merge of #96733 - SparrowLii:place_to_string, r=davidtwco
[rust.git] / src / tools / clippy / tests / ui / let_underscore_drop.stderr
1 error: non-binding `let` on a type that implements `Drop`
2   --> $DIR/let_underscore_drop.rs:17: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:18: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:19: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