Files
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
238 B
Rust
Raw Normal View History

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