about summary refs log tree commit diff
path: root/tests/ui/macros/macro-invocation-with-variable-in-scope-9737.rs
blob: 957c2e3f1033d363cfc89c84738d8099ac3fa8f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://github.com/rust-lang/rust/issues/9737
//@ run-pass
#![allow(unused_variables)]
macro_rules! f {
    (v: $x:expr) => ( println!("{}", $x) )
}

fn main () {
    let v = 5;
    f!(v: 3);
}