1 // aux-build:attr-from-macro.rs
4 extern crate attr_from_macro;
6 attr_from_macro::creator! {
13 // Checking the `repr(u32)` on the enum.
14 assert_eq!(4, std::mem::size_of::<Bar>());
15 // Checking the `repr(u16)` on the enum.
16 assert_eq!(2, std::mem::size_of::<FooBar>());
18 // Checking the Debug impl on the types.
19 eprintln!("{:?} {:?} {:?}", Foo, Bar::A, FooBar::A);