diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-17 12:12:57 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-24 06:28:56 +0100 |
| commit | df9cec2df4da27b8a6d1f3ec031392290ff279d1 (patch) | |
| tree | a473a16a2a90919163cea5e0b59e4a02b9b4088c /src/test/ui/parser | |
| parent | ad26401dc133aa6db6aaa8631aa9bf54d81947f6 (diff) | |
| download | rust-df9cec2df4da27b8a6d1f3ec031392290ff279d1.tar.gz rust-df9cec2df4da27b8a6d1f3ec031392290ff279d1.zip | |
mbe::transcribe: defatalize errors.
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/macro/macro-repeat.rs | 9 | ||||
| -rw-r--r-- | src/test/ui/parser/macro/macro-repeat.stderr | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/test/ui/parser/macro/macro-repeat.rs b/src/test/ui/parser/macro/macro-repeat.rs index 580a1daacbf..3ffbea217e7 100644 --- a/src/test/ui/parser/macro/macro-repeat.rs +++ b/src/test/ui/parser/macro/macro-repeat.rs @@ -1,9 +1,12 @@ macro_rules! mac { - ( $($v:tt)* ) => ( - $v //~ ERROR still repeating at this depth - ) + ( $($v:tt)* ) => { + $v + //~^ ERROR still repeating at this depth + //~| ERROR still repeating at this depth + }; } fn main() { mac!(0); + mac!(1); } diff --git a/src/test/ui/parser/macro/macro-repeat.stderr b/src/test/ui/parser/macro/macro-repeat.stderr index c86684de744..63554b197b9 100644 --- a/src/test/ui/parser/macro/macro-repeat.stderr +++ b/src/test/ui/parser/macro/macro-repeat.stderr @@ -4,5 +4,11 @@ error: variable 'v' is still repeating at this depth LL | $v | ^^ -error: aborting due to previous error +error: variable 'v' is still repeating at this depth + --> $DIR/macro-repeat.rs:3:9 + | +LL | $v + | ^^ + +error: aborting due to 2 previous errors |
