1
Fork 0
rust/src/test/ui/unsafe/unsafe-block-without-braces.stderr

12 lines
368 B
Text
Raw Normal View History

error: expected `{`, found `std`
2018-12-25 08:56:47 -07:00
--> $DIR/unsafe-block-without-braces.rs:3:9
|
2018-02-25 02:59:34 +03:00
LL | std::mem::transmute::<f32, u32>(1.0);
| ^^^----------------------------------
| |
| expected `{`
| help: try placing this code inside a block: `{ std::mem::transmute::<f32, u32>(1.0); }`
error: aborting due to previous error