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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
150 B
Rust
Raw Normal View History

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