1 2 3 4 5 6 7 8 9 10 11
// check-pass // edition:2018 use derive as my_derive; #[my_derive(Debug)] struct S; fn main() { println!("{:?}", S); // OK }