fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1.2 KiB31 linesraw
1error: this file contains an un-closed delimiter
2  --> $DIR/issue-62554.rs:5:53
3   |
4LL | fn foo(u: u8) { if u8 macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 {
5   |               -                       -         -                  -                  - un-closed delimiter
6   |               |                       |         |                  |
7   |               |                       |         |                  un-closed delimiter
8   |               |                       |         un-closed delimiter
9   |               un-closed delimiter     un-closed delimiter
10LL |
11LL |
12   |                                                     ^
13
14error: expected `{`, found `macro_rules`
15  --> $DIR/issue-62554.rs:3:23
16   |
17LL | fn foo(u: u8) { if u8 macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 {
18   |                 --    ^^^^^^^^^^^ expected `{`
19   |                 |
20   |                 this `if` statement has a condition, but no block
21   |
22help: try placing this code inside a block
23   |
24LL | fn foo(u: u8) { if u8 { macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 {
25LL |
26LL |
27LL |  }
28   |
29
30error: aborting due to 2 previous errors
31