summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.mir.stderr
blob: 62199e5a2ec0bdd8fbfdc07c67a158d9fefe15f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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