rust/tests/ui/deriving/deriving-in-macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
246 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
macro_rules! define_vec {
2013-11-16 00:34:52 -06:00
() => (
mod foo {
#[derive(PartialEq)]
2013-11-16 00:34:52 -06:00
pub struct bar;
}
)
}
2013-11-16 00:34:52 -06:00
define_vec![];
2013-11-16 00:34:52 -06:00
pub fn main() {}