mbe::transcribe: defatalize errors.
This commit is contained in:
parent
ad26401dc1
commit
df9cec2df4
9 changed files with 68 additions and 37 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue