fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
767 B28 linesraw
1error: suffixed literals are not allowed in attributes
2  --> $DIR/malformed-interpolated.rs:13:8
3   |
4LL | check!(0u8);
5   |        ^^^
6   |
7   = help: instead of using a suffixed literal (1u8, 1.0f32, etc.), use an unsuffixed version (1, 1.0, etc.).
8
9error: unexpected token: `-0`
10  --> $DIR/malformed-interpolated.rs:5:25
11   |
12LL |         #[rustc_dummy = $expr]
13   |                         ^^^^^
14...
15LL | check!(-0); // ERROR, see above
16   | ----------- in this macro invocation
17
18error: unexpected token: `0 + 0`
19  --> $DIR/malformed-interpolated.rs:5:25
20   |
21LL |         #[rustc_dummy = $expr]
22   |                         ^^^^^
23...
24LL | check!(0 + 0); // ERROR, see above
25   | -------------- in this macro invocation
26
27error: aborting due to 3 previous errors
28