mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
355 B
11 lines
355 B
$ 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` due to previous error
|