]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0120.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0120.stderr
1 error[E0120]: the `Drop` trait may only be implemented for structs, enums, and unions
2   --> $DIR/E0120.rs:3:15
3    |
4 LL | impl Drop for dyn MyTrait {
5    |               ^^^^^^^^^^^ must be a struct, enum, or union
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0120`.