]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/drop_non_drop.stderr
Rollup merge of #105801 - zertosh:path_mut_os_str_doc_test, r=dtolnay
[rust.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: argument has type `main::Foo`
8   --> $DIR/drop_non_drop.rs:22:10
9    |
10 LL |     drop(Foo);
11    |          ^^^
12    = note: `-D clippy::drop-non-drop` implied by `-D warnings`
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