mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 19:16:36 +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() {}
|