]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/drop_non_drop.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / drop_non_drop.stderr
1 error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
2 --> $DIR/drop_non_drop.rs:22:5
3 |
4 LL | drop(Foo);
5 | ^^^^^^^^^
6 |
7 = note: `-D clippy::drop-non-drop` implied by `-D warnings`
8 note: argument has type `main::Foo`
9 --> $DIR/drop_non_drop.rs:22:10
10 |
11 LL | drop(Foo);
12 | ^^^
13
14 error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
15 --> $DIR/drop_non_drop.rs:37:5
16 |
17 LL | drop(Baz(Foo));
18 | ^^^^^^^^^^^^^^
19 |
20 note: argument has type `main::Baz<main::Foo>`
21 --> $DIR/drop_non_drop.rs:37:10
22 |
23 LL | drop(Baz(Foo));
24 | ^^^^^^^^
25
26 error: aborting due to 2 previous errors
27