Skip to content

Commit aade556

Browse files
authored
Unrolled build for rust-lang#122683
Rollup merge of rust-lang#122683 - tshepang:missing-test, r=Nadrieril add missing test: expected paren or brace in macro
2 parents 3cdcdaf + 0550afd commit aade556

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
macro_rules! foo {
2+
( $( $i:ident ),* ) => {
3+
$[count($i)]
4+
//~^ ERROR expected `(` or `{`, found `[`
5+
//~| ERROR
6+
};
7+
}
8+
9+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: expected `(` or `{`, found `[`
2+
--> $DIR/paren-or-brace-expected.rs:3:10
3+
|
4+
LL | $[count($i)]
5+
| ^^^^^^^^^^^
6+
7+
error: expected one of: `*`, `+`, or `?`
8+
--> $DIR/paren-or-brace-expected.rs:3:10
9+
|
10+
LL | $[count($i)]
11+
| ^^^^^^^^^^^
12+
13+
error: aborting due to 2 previous errors
14+

0 commit comments

Comments
 (0)