rust/tests/ui/macros/issue-22463.rs
2024-02-07 10:42:01 +08:00

21 lines
184 B
Rust

// check-pass
macro_rules! items {
() => {
type A = ();
fn a() {}
}
}
trait Foo {
type A;
fn a();
}
impl Foo for () {
items!();
}
fn main() {
}