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