rust/src/test/ui/custom-derive/helper-attr-blocked-by-import.rs
2018-11-30 06:15:20 +02:00

29 lines
324 B
Rust

// compile-pass
// aux-build:plugin.rs
#[macro_use(WithHelper)]
extern crate plugin;
use self::one::*;
use self::two::*;
mod helper {}
mod one {
use helper;
#[derive(WithHelper)]
#[helper]
struct One;
}
mod two {
use helper;
#[derive(WithHelper)]
#[helper]
struct Two;
}
fn main() {}