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.

16 lines
215 B
Rust
Raw Normal View History

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