1 2 3 4 5 6 7 8 9 10
//@ check-pass #![feature(impl_trait_in_bindings)] trait Foo {} impl Foo for () {} fn main() { let x: impl Foo = (); }