mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 23:38:41 +08:00
18 lines
511 B
Plaintext
18 lines
511 B
Plaintext
$ cargo run
|
|
Compiling drop-example v0.1.0 (file:///projects/drop-example)
|
|
error[E0040]: explicit use of destructor method
|
|
--> src/main.rs:16:7
|
|
|
|
|
16 | c.drop();
|
|
| --^^^^--
|
|
| | |
|
|
| | explicit destructor calls not allowed
|
|
| help: consider using `drop` function: `drop(c)`
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0040`.
|
|
error: could not compile `drop-example`
|
|
|
|
To learn more, run the command again with --verbose.
|