|
1 | 1 | error: no rules expected keyword `const` |
2 | | - --> $DIR/std-2024-macros.rs:5:19 |
3 | | - | |
4 | | -LL | assert_eq!(0, const { 0 }); |
5 | | - | ^^^^^ no rules expected this token in macro call |
6 | | - | |
7 | | -note: while trying to match meta-variable `$right:expr` |
8 | | - --> $SRC_DIR/core/src/macros/mod.rs:LL:COL |
9 | | - |
10 | | -error: no rules expected keyword `const` |
11 | | - --> $DIR/std-2024-macros.rs:7:16 |
12 | | - | |
13 | | -LL | assert_eq!(const { 0 }, const { 0 }); |
14 | | - | ^^^^^ no rules expected this token in macro call |
15 | | - | |
16 | | -note: while trying to match meta-variable `$left:expr` |
17 | | - --> $SRC_DIR/core/src/macros/mod.rs:LL:COL |
18 | | - |
19 | | -error: no rules expected keyword `const` |
20 | | - --> $DIR/std-2024-macros.rs:9:16 |
21 | | - | |
22 | | -LL | assert_eq!(const { 0 }, 0); |
23 | | - | ^^^^^ no rules expected this token in macro call |
24 | | - | |
25 | | -note: while trying to match meta-variable `$left:expr` |
26 | | - --> $SRC_DIR/core/src/macros/mod.rs:LL:COL |
27 | | - |
28 | | -error: no rules expected keyword `const` |
29 | | - --> $DIR/std-2024-macros.rs:12:36 |
| 2 | + --> $DIR/std-2024-macros.rs:9:36 |
30 | 3 | | |
31 | 4 | LL | let _: Vec<Vec<String>> = vec![const { vec![] }]; |
32 | 5 | | ^^^^^ no rules expected this token in macro call |
33 | 6 | | |
34 | 7 | = note: while trying to match end of macro |
35 | 8 |
|
36 | 9 | error: no rules expected keyword `const` |
37 | | - --> $DIR/std-2024-macros.rs:14:36 |
| 10 | + --> $DIR/std-2024-macros.rs:11:36 |
38 | 11 | | |
39 | 12 | LL | let _: Vec<Vec<String>> = vec![const { vec![] }; 10]; |
40 | 13 | | ^^^^^ no rules expected this token in macro call |
41 | 14 | | |
42 | 15 | = note: while trying to match end of macro |
43 | 16 |
|
44 | | -error: aborting due to 5 previous errors |
| 17 | +error: aborting due to 2 previous errors |
45 | 18 |
|
0 commit comments