summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/let-var-hygiene.rs
blob: 571207bd7d6f6270c09ab13a46babf6cc8cef2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// shouldn't affect evaluation of $ex:

macro_rules! bad_macro {
    ($ex:expr) => ({let _x = 9; $ex})
}

pub fn main() {
    let _x = 8;
    assert_eq!(bad_macro!(_x),8)
}