about summary refs log tree commit diff
path: root/tests/ui/impl-trait/name-mentioning-macro.rs
blob: 8a81911c0bbdf8dfbffb21ae7544ca336ce3566b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
trait Foo<T> {}

macro_rules! bar {
    () => { () }
}

fn foo(x: impl Foo<bar!()>) {
    let () = x;
    //~^ ERROR mismatched types
}

fn main() {}