]> git.lizzy.rs Git - rust.git/blob - tests/ui/illegal-ufcs-drop.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / illegal-ufcs-drop.stderr
1 error[E0040]: explicit use of destructor method
2   --> $DIR/illegal-ufcs-drop.rs:9:5
3    |
4 LL |     Drop::drop(&mut Foo)
5    |     ^^^^^^^^^^
6    |     |
7    |     explicit destructor calls not allowed
8    |     help: consider using `drop` function: `drop`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0040`.