about summary refs log tree commit diff
path: root/tests/ui/macros/issue-29084.rs
blob: a0a2966f75b5bea2e447f09b3e02d14d488b6faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ dont-require-annotations: NOTE

macro_rules! foo {
    ($d:expr) => {{
        fn bar(d: u8) { }
        bar(&mut $d);
        //~^ ERROR mismatched types
        //~| NOTE expected `u8`, found `&mut u8`
    }}
}

fn main() {
    foo!(0u8);
    //~^ NOTE in this expansion of foo!
}