1 error[E0283]: type annotations needed
2 --> $DIR/issue-86162-2.rs:12:14
4 LL | Foo::bar(gen()); //<- Do not suggest `Foo::bar::<impl Clone>()`!
5 | -------- ^^^ cannot infer type of the type parameter `T` declared on the function `gen`
7 | required by a bound introduced by this call
9 = note: cannot satisfy `_: Clone`
10 note: required by a bound in `Foo::bar`
11 --> $DIR/issue-86162-2.rs:8:20
13 LL | fn bar(x: impl Clone) {}
14 | ^^^^^ required by this bound in `Foo::bar`
15 help: consider specifying the generic argument
17 LL | Foo::bar(gen::<T>()); //<- Do not suggest `Foo::bar::<impl Clone>()`!
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0283`.