rust/tests/ui/impl-trait/name-mentioning-macro.rs

13 lines
150 B
Rust

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