1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
// run-pass #![allow(path_statements)] #![allow(dead_code)] // aux-build:derive-atob.rs // aux-build:derive-ctod.rs #[macro_use] extern crate derive_atob; #[macro_use] extern crate derive_ctod; #[derive(Copy, Clone)] #[derive(AToB)] struct A; #[derive(CToD)] struct C; fn main() { B; D; }