summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/deriving-in-macro.rs
blob: 46e8e37838dbd6dd2d93ce97bf23d62ccd7a1279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]

macro_rules! define_vec {
    () => (
        mod foo {
            #[derive(PartialEq)]
            pub struct bar;
        }
    )
}

define_vec![];

pub fn main() {}