rust/tests/ui/macros/issue-22463.rs

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

21 lines
185 B
Rust
Raw Normal View History

2024-02-07 02:42:01 +00:00
//@ check-pass
macro_rules! items {
() => {
type A = ();
fn a() {}
}
}
trait Foo {
type A;
fn a();
}
impl Foo for () {
items!();
}
fn main() {
}