summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/bad-recover-ty-after-impl.rs
blob: 510e08ba091a4058f3e76fb08280e42a1c44c607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// check-pass

macro_rules! impl_primitive {
    ($ty:ty) => { impl_primitive!(impl $ty); };
    (impl $ty:ty) => { fn a(_: $ty) {} }
}

impl_primitive! { u8 }

macro_rules! test {
    ($ty:ty) => { compile_error!("oh no"); };
    (impl &) => {};
}

test!(impl &);

fn main() {}