diff options
| author | Will Hipschman <whipsch@gmail.com> | 2015-04-04 13:13:57 -0700 |
|---|---|---|
| committer | Will Hipschman <whipsch@gmail.com> | 2015-04-06 17:59:58 -0700 |
| commit | ab3215406d0cd76ea71a554e0f4bdd16331cca7f (patch) | |
| tree | 6c4790fffc3449788b4ba3ff3d41ed166e3ae2e1 /src/test/compile-fail | |
| parent | b49a5ef003fedcbb0d78aebda62ba30dfdd17a20 (diff) | |
| download | rust-ab3215406d0cd76ea71a554e0f4bdd16331cca7f.tar.gz rust-ab3215406d0cd76ea71a554e0f4bdd16331cca7f.zip | |
Provide context for macro expansions which result in unparsed tokens.
Issue #22425
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/macro-incomplete-parse.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail/macro-incomplete-parse.rs b/src/test/compile-fail/macro-incomplete-parse.rs index 53b29ccb0c0..b3ce84c7e6f 100644 --- a/src/test/compile-fail/macro-incomplete-parse.rs +++ b/src/test/compile-fail/macro-incomplete-parse.rs @@ -24,12 +24,12 @@ macro_rules! ignored_pat { () => ( 1, 2 ) //~ ERROR macro expansion ignores token `,` } -ignored_item!(); +ignored_item!(); //~ NOTE caused by the macro expansion here fn main() { - ignored_expr!(); + ignored_expr!(); //~ NOTE caused by the macro expansion here match 1 { - ignored_pat!() => (), + ignored_pat!() => (), //~ NOTE caused by the macro expansion here _ => (), } } |
