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.
13 lines
529 B
13 lines
529 B
3 years ago
|
$ cargo run
|
||
|
Compiling unsafe-example v0.1.0 (file:///projects/unsafe-example)
|
||
6 months ago
|
error[E0133]: call to unsafe function `dangerous` is unsafe and requires unsafe function or block
|
||
3 years ago
|
--> src/main.rs:4:5
|
||
|
|
|
||
|
4 | dangerous();
|
||
|
| ^^^^^^^^^^^ call to unsafe function
|
||
|
|
|
||
|
= note: consult the function's documentation for information on how to avoid undefined behavior
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0133`.
|
||
6 months ago
|
error: could not compile `unsafe-example` (bin "unsafe-example") due to 1 previous error
|