|
| 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 |
| 30 | + | |
| 31 | +LL | let _: Vec<Vec<String>> = vec![const { vec![] }]; |
| 32 | + | ^^^^^ no rules expected this token in macro call |
| 33 | + | |
| 34 | + = note: while trying to match end of macro |
| 35 | + |
| 36 | +error: no rules expected keyword `const` |
| 37 | + --> $DIR/std-2024-macros.rs:14:36 |
| 38 | + | |
| 39 | +LL | let _: Vec<Vec<String>> = vec![const { vec![] }; 10]; |
| 40 | + | ^^^^^ no rules expected this token in macro call |
| 41 | + | |
| 42 | + = note: while trying to match end of macro |
| 43 | + |
| 44 | +error: aborting due to 5 previous errors |
| 45 | + |
0 commit comments