summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issue-60473.rs
blob: 50cf0c8c6d641dfdce25f8e2899d1740a3580a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Regression test for #60473

#![feature(impl_trait_in_bindings)]
#![allow(incomplete_features)]

struct A<'a>(&'a ());

trait Trait<T> {
}

impl<T> Trait<T> for () {
}

fn main() {
    let x: impl Trait<A> = (); // FIXME: The error doesn't seem correct.
    //~^ ERROR: opaque type expands to a recursive type
}