summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-25385.rs
blob: ea042a6c76bb474905870f161133726a778b1475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! foo {
    ($e:expr) => { $e.foo() }
    //~^ ERROR no method named `foo` found
}

fn main() {
    let a = 1i32;
    foo!(a);

    foo!(1i32.foo());
    //~^ ERROR no method named `foo` found
}