]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/forget_non_drop.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / forget_non_drop.stderr
1 error: call to `std::mem::forget` with a value that does not implement `Drop`. Forgetting such a type is the same as dropping it
2 --> $DIR/forget_non_drop.rs:13:5
3 |
4 LL | forget(Foo);
5 | ^^^^^^^^^^^
6 |
7 note: argument has type `main::Foo`
8 --> $DIR/forget_non_drop.rs:13:12
9 |
10 LL | forget(Foo);
11 | ^^^
12 = note: `-D clippy::forget-non-drop` implied by `-D warnings`
13 = help: to override `-D warnings` add `#[allow(clippy::forget_non_drop)]`
14
15 error: call to `std::mem::forget` with a value that does not implement `Drop`. Forgetting such a type is the same as dropping it
16 --> $DIR/forget_non_drop.rs:25:5
17 |
18 LL | forget(Baz(Foo));
19 | ^^^^^^^^^^^^^^^^
20 |
21 note: argument has type `main::Baz<main::Foo>`
22 --> $DIR/forget_non_drop.rs:25:12
23 |
24 LL | forget(Baz(Foo));
25 | ^^^^^^^^
26
27 error: aborting due to 2 previous errors
28