about summary refs log tree commit diff
path: root/tests/ui/macros/issue-22463.rs
blob: 8f7b27cb9a056a69b5258cef33de4b7e6689fa72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// check-pass
macro_rules! items {
    () => {
        type A = ();
        fn a() {}
    }
}

trait Foo {
    type A;
    fn a();
}

impl Foo for () {
    items!();
}

fn main() {

}