mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2024-11-14 21:11:31 +08:00
11 lines
379 B
Plaintext
11 lines
379 B
Plaintext
$ cargo run
|
|
Compiling deref-example v0.1.0 (file:///projects/deref-example)
|
|
error[E0614]: type `MyBox<{integer}>` cannot be dereferenced
|
|
--> src/main.rs:14:19
|
|
|
|
|
14 | assert_eq!(5, *y);
|
|
| ^^
|
|
|
|
For more information about this error, try `rustc --explain E0614`.
|
|
error: could not compile `deref-example` (bin "deref-example") due to 1 previous error
|