mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 10:24:16 +00:00
Add another test for issue #31856
This commit is contained in:
parent
974f1eff58
commit
ca1d29c4de
@ -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…
Reference in New Issue
Block a user