Add another test for issue #31856

This commit is contained in:
Jeffrey Seyfried 2016-04-15 02:22:34 +00:00
parent 974f1eff58
commit ca1d29c4de

View File

@ -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);
}