summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs
blob: e928f09aa6d37f5f5cc5a0cab5c3ba5c00a2210a (plain)
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() {}