mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
21 lines
567 B
Plaintext
21 lines
567 B
Plaintext
error: unnecessary `unsafe` block
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:9:9
|
|
|
|
|
LL | unsafe { async {}.await; }
|
|
| ^^^^^^ unnecessary `unsafe` block
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:5:9
|
|
|
|
|
LL | #![deny(unused_unsafe)]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: unnecessary `unsafe` block
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:13:5
|
|
|
|
|
LL | unsafe { println!("foo"); }
|
|
| ^^^^^^ unnecessary `unsafe` block
|
|
|
|
error: aborting due to 2 previous errors
|
|
|