]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/drop_bounds.stderr
Rollup merge of #72591 - sexxi-goose:rename_upvar_list-to-closure_captures, r=matthew...
[rust.git] / src / tools / clippy / tests / ui / drop_bounds.stderr
1 error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
2   --> $DIR/drop_bounds.rs:2:11
3    |
4 LL | fn foo<T: Drop>() {}
5    |           ^^^^
6    |
7    = note: `#[deny(clippy::drop_bounds)]` on by default
8
9 error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
10   --> $DIR/drop_bounds.rs:5:8
11    |
12 LL |     T: Drop,
13    |        ^^^^
14
15 error: aborting due to 2 previous errors
16