mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-03 07:48:41 +08:00
15 lines
426 B
Plaintext
15 lines
426 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);
|
||
|
| ^^
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0614`.
|
||
|
error: could not compile `deref-example`
|
||
|
|
||
|
To learn more, run the command again with --verbose.
|