summaryrefslogtreecommitdiffstats
path: root/tests/ui/unsafe/unsafe-block-without-braces.stderr
blob: 44f77b99c561c04d0bd69528322174a36a659d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: expected `{`, found `std`
  --> $DIR/unsafe-block-without-braces.rs:3:9
   |
LL |     unsafe //{
   |     ------ while parsing this `unsafe` expression
LL |         std::mem::transmute::<f32, u32>(1.0);
   |         ^^^ expected `{`
   |
help: try placing this code inside a block
   |
LL |         { std::mem::transmute::<f32, u32>(1.0); }
   |         +                                       +

error: aborting due to previous error