about summary refs log tree commit diff
path: root/tests/crashes/93237.rs
blob: c903e79a2e300adbdffb1d2d5ce3c6a9f55cb98f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ known-bug: #93237
trait Trait {
    type Assoc;
}
impl Trait for () {
    type Assoc = ();
}

macro_rules! m {
    ([#$($t:tt)*] [$($open:tt)*] [$($close:tt)*]) => {
        m!{[$($t)*][$($open)*$($open)*][$($close)*$($close)*]}
    };
    ([] [$($open:tt)*] [$($close:tt)*]) => {
        fn _f() -> $($open)*()$($close)* {}
    };
}

m! {[###########][impl Trait<Assoc =][>]}