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