1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#![feature(phase)] #[phase(plugin)] extern crate apply_pub; mod foo { #[apply_pub] struct Foo { a: uint, b: uint, c: uint, d: uint, e: uint, } } #[test] fn main() { let _ = foo::Foo { a: 0, b: 0, c: 0, d: 0, e: 0, }; }