1 2 3 4 5 6 7 8 9 10 11 12 13 14
#![allow(dead_code)] #[test] fn compilation() { #[attrimpl::attrimpl] enum Enum<'a, const N: usize = 7> { S(#[attrimpl(convert)] &'a String), U8 { #[attrimpl(from)] byte: u8, }, F64(#[attrimpl(convert)] f64), } }