1 2 3 4 5 6 7 8 9 10 11 12 13
// revisions: rpass1 rpass2 #[cfg(rpass1)] pub trait Something { fn foo(); } #[cfg(rpass2)] pub struct Something { pub foo: u8, } fn main() {}