mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
13 lines
150 B
Rust
13 lines
150 B
Rust
trait Foo<T> {}
|
|
|
|
macro_rules! bar {
|
|
() => { () }
|
|
}
|
|
|
|
fn foo(x: impl Foo<bar!()>) {
|
|
let () = x;
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|