blob: d29e49d73a6613078125e56fbc9fed789c9fd3fa (
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 1 previous error
|