mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
21 lines
185 B
Rust
21 lines
185 B
Rust
//@ check-pass
|
|
macro_rules! items {
|
|
() => {
|
|
type A = ();
|
|
fn a() {}
|
|
}
|
|
}
|
|
|
|
trait Foo {
|
|
type A;
|
|
fn a();
|
|
}
|
|
|
|
impl Foo for () {
|
|
items!();
|
|
}
|
|
|
|
fn main() {
|
|
|
|
}
|