]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dyn-drop/dyn-drop.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / dyn-drop / dyn-drop.stderr
1 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
2   --> $DIR/dyn-drop.rs:3:19
3    |
4 LL | fn foo(_: Box<dyn Drop>) {}
5    |                   ^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/dyn-drop.rs:1:9
9    |
10 LL | #![deny(dyn_drop)]
11    |         ^^^^^^^^
12
13 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
14   --> $DIR/dyn-drop.rs:4:16
15    |
16 LL | fn bar(_: &dyn Drop) {}
17    |                ^^^^
18
19 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
20   --> $DIR/dyn-drop.rs:5:16
21    |
22 LL | fn baz(_: *mut Drop) {}
23    |                ^^^^
24
25 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
26   --> $DIR/dyn-drop.rs:7:15
27    |
28 LL |   _x: Box<dyn Drop>
29    |               ^^^^
30
31 error: types that do not implement `Drop` can still have drop glue, consider instead using `std::mem::needs_drop` to detect whether a type is trivially dropped
32   --> $DIR/dyn-drop.rs:14:16
33    |
34 LL |   type T = dyn Drop;
35    |                ^^^^
36
37 error: aborting due to 5 previous errors
38