rust/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
167 B
Rust
Raw Normal View History

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