// Regression test for #60473 #![feature(impl_trait_in_bindings)] #![allow(incomplete_features)] struct A<'a>(&'a ()); trait Trait { } impl Trait for () { } fn main() { let x: impl Trait = (); // FIXME: The error doesn't seem correct. //~^ ERROR: opaque type expands to a recursive type }