]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/empty_drop.stderr
Rollup merge of #100462 - zohnannor:master, r=thomcc
[rust.git] / src / tools / clippy / tests / ui / empty_drop.stderr
1 error: empty drop implementation
2   --> $DIR/empty_drop.rs:8:1
3    |
4 LL | / impl Drop for Foo {
5 LL | |     fn drop(&mut self) {}
6 LL | | }
7    | |_^ help: try removing this impl
8    |
9    = note: `-D clippy::empty-drop` implied by `-D warnings`
10
11 error: empty drop implementation
12   --> $DIR/empty_drop.rs:24:1
13    |
14 LL | / impl Drop for Baz {
15 LL | |     fn drop(&mut self) {
16 LL | |         {}
17 LL | |     }
18 LL | | }
19    | |_^ help: try removing this impl
20
21 error: aborting due to 2 previous errors
22