summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/drop_bounds.stderr
blob: 5d360ef30a1d89048c017a061e64167a2acbd9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
  --> $DIR/drop_bounds.rs:2:11
   |
LL | fn foo<T: Drop>() {}
   |           ^^^^
   |
   = note: `#[deny(clippy::drop_bounds)]` on by default

error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
  --> $DIR/drop_bounds.rs:5:8
   |
LL |     T: Drop,
   |        ^^^^

error: aborting due to 2 previous errors