2020-01-30 06:02:06 -06:00
|
|
|
error: expected `{`, found `std`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unsafe-block-without-braces.rs:3:9
|
2018-02-19 12:07:45 -06:00
|
|
|
|
|
2022-01-12 14:43:24 -06:00
|
|
|
LL | unsafe //{
|
|
|
|
| ------ while parsing this `unsafe` expression
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | std::mem::transmute::<f32, u32>(1.0);
|
2022-01-12 14:43:24 -06:00
|
|
|
| ^^^ expected `{`
|
|
|
|
|
|
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | { std::mem::transmute::<f32, u32>(1.0); }
|
|
|
|
| + +
|
2018-02-19 12:07:45 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|