rust/src/test/ui/obsolete-syntax-impl-for-dotdot.rs
2018-12-25 21:08:33 -07:00

10 lines
167 B
Rust

trait Trait1 {}
trait Trait2 {}
#[cfg(not_enabled)]
impl Trait1 for .. {}
impl Trait2 for .. {} //~ ERROR `impl Trait for .. {}` is an obsolete syntax
fn main() {}