]> git.proxmox.com Git - rustc.git/blob - tests/ui/unsafe/unsafe-block-without-braces.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / unsafe / unsafe-block-without-braces.stderr
1 error: expected `{`, found `std`
2 --> $DIR/unsafe-block-without-braces.rs:3:9
3 |
4 LL | unsafe //{
5 | ------ while parsing this `unsafe` expression
6 LL | std::mem::transmute::<f32, u32>(1.0);
7 | ^^^ expected `{`
8 |
9 help: try placing this code inside a block
10 |
11 LL | { std::mem::transmute::<f32, u32>(1.0); }
12 | + +
13
14 error: aborting due to previous error
15