1 2 3 4 5 6 7 8 9
trait Trait1 {} trait Trait2 {} #[cfg(not_enabled)] impl Trait1 for .. {} impl Trait2 for .. {} //~ ERROR `impl Trait for .. {}` is an obsolete syntax fn main() {}