Skip to content

Commit d641ad0

Browse files
committed
Update test
1 parent 82920f3 commit d641ad0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/test/ui/macros/trace_faulty_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ macro_rules! pat_macro {
1313
pat_macro!(A{a:a, b:0, c:_, ..});
1414
};
1515
($a:pat) => {
16-
$a
16+
$a //~ ERROR expected expression
1717
};
1818
}
1919

src/test/ui/macros/trace_faulty_macros.stderr

+12-1
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,16 @@ LL | my_recursive_macro!();
4949
= note: expanding `my_recursive_macro! { }`
5050
= note: to `my_recursive_macro ! () ;`
5151

52-
error: aborting due to 2 previous errors
52+
error: expected expression, found `A { a: a, b: 0, c: _, .. }`
53+
--> $DIR/trace_faulty_macros.rs:16:9
54+
|
55+
LL | $a
56+
| ^^ expected expression
57+
...
58+
LL | let a = pat_macro!();
59+
| ------------ in this macro invocation
60+
|
61+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
62+
63+
error: aborting due to 3 previous errors
5364

0 commit comments

Comments
 (0)