blob: 3d8234c15e79ae8eefe008799718f5fa4383a8d0 (
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: you might have meant to write this as part of a block
|
LL | { std::mem::transmute::<f32, u32>(1.0); }
| + +
error: aborting due to 1 previous error
|