]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch19-advanced-features/output-only-01-missing-unsafe/output.txt
New upstream version 1.50.0+dfsg1
[rustc.git] / src / doc / book / listings / ch19-advanced-features / output-only-01-missing-unsafe / output.txt
1 $ cargo run
2 Compiling unsafe-example v0.1.0 (file:///projects/unsafe-example)
3 error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
4 --> src/main.rs:4:5
5 |
6 4 | dangerous();
7 | ^^^^^^^^^^^ call to unsafe function
8 |
9 = note: consult the function's documentation for information on how to avoid undefined behavior
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0133`.
14 error: could not compile `unsafe-example`
15
16 To learn more, run the command again with --verbose.