summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issues/issue-84919.rs
blob: 479bad97cdf32e214d46aa9f17045a945ae5105b (plain)
1
2
3
4
5
6
7
8
9
trait Trait {}
impl Trait for () {}

fn foo<'a: 'a>() {
    let _x: impl Trait = ();
    //~^ `impl Trait` not allowed outside of function and method return types
}

fn main() {}