Add another test for issue #31856
This commit is contained in:
parent
974f1eff58
commit
ca1d29c4de
1 changed files with 10 additions and 0 deletions
|
|
@ -24,8 +24,18 @@ macro_rules! bar { // test issue #31856
|
|||
)
|
||||
}
|
||||
|
||||
macro_rules! baz {
|
||||
($i:ident) => {
|
||||
let mut $i = 2;
|
||||
$i = $i + 1;
|
||||
}
|
||||
}
|
||||
|
||||
#[rustc_error]
|
||||
fn main() { //~ ERROR compilation successful
|
||||
foo! {};
|
||||
bar! {};
|
||||
|
||||
let mut a = true;
|
||||
baz!(a);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue