]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsafe/unsafe-block-without-braces.stderr
Rollup merge of #103033 - alyssais:pkg-config, r=joshtriplett
[rust.git] / src / test / 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