rust/src/test/ui/unsafe/unsafe-around-compiler-generated-unsafe.stderr
2018-12-25 21:08:33 -07:00

15 lines
402 B
Plaintext

error: unnecessary `unsafe` block
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:6:5
|
LL | unsafe { println!("foo"); } //~ ERROR unnecessary `unsafe`
| ^^^^^^ unnecessary `unsafe` block
|
note: lint level defined here
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:3:9
|
LL | #![deny(unused_unsafe)]
| ^^^^^^^^^^^^^
error: aborting due to previous error