rust/tests/ui/issues/issue-24954.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
180 B
Rust
Raw Normal View History

//@ run-pass
2015-11-03 06:20:45 -06:00
macro_rules! foo {
($y:expr) => ({
$y = 2;
})
}
#[allow(unused_variables)]
#[allow(unused_assignments)]
fn main() {
let mut x = 1;
foo!(x);
}