]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/let_underscore_drop.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / let_underscore_drop.stderr
CommitLineData
f20569fa
XL
1error: non-binding `let` on a type that implements `Drop`
2 --> $DIR/let_underscore_drop.rs:16:5
3 |
4LL | 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
10error: non-binding `let` on a type that implements `Drop`
11 --> $DIR/let_underscore_drop.rs:17:5
12 |
13LL | let _ = Droppable;
14 | ^^^^^^^^^^^^^^^^^^
15 |
16 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
17
18error: non-binding `let` on a type that implements `Drop`
19 --> $DIR/let_underscore_drop.rs:18:5
20 |
21LL | let _ = Some(Droppable);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^
23 |
24 = help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
25
26error: aborting due to 3 previous errors
27