diff options
Diffstat (limited to 'tests/ui/deriving/deriving-in-macro.rs')
-rw-r--r-- | tests/ui/deriving/deriving-in-macro.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/deriving/deriving-in-macro.rs b/tests/ui/deriving/deriving-in-macro.rs new file mode 100644 index 000000000..46e8e3783 --- /dev/null +++ b/tests/ui/deriving/deriving-in-macro.rs @@ -0,0 +1,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() {} |