]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0040.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0040.stderr
1 error[E0040]: explicit use of destructor method
2   --> $DIR/E0040.rs:16:7
3    |
4 LL |     x.drop();
5    |     --^^^^--
6    |     | |
7    |     | explicit destructor calls not allowed
8    |     help: consider using `drop` function: `drop(x)`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0040`.