]>
Commit | Line | Data |
---|---|---|
f2b60f7d | 1 | error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions |
0731742a | 2 | --> $DIR/E0120.rs:3:15 |
2c00a5a8 | 3 | | |
dc9dc135 | 4 | LL | impl Drop for dyn MyTrait { |
f2b60f7d | 5 | | ^^^^^^^^^^^ must be a struct, enum, or union in the current crate |
2c00a5a8 XL |
6 | |
7 | error: aborting due to previous error | |
8 | ||
0531ce1d | 9 | For more information about this error, try `rustc --explain E0120`. |