#![feature(unboxed_closures)] //@ check-pass // Regression test for #131758. We only know the type of `x` after closure upvar // inference is done, even if we don't need to structurally resolve the type of `x`. trait Foo {} impl> Foo for T {} fn baz(_: T) {} fn main() { baz(|x| ()); }