]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/issue-86162-1.stderr
Rollup merge of #107192 - fmease:mailmap-me-at-fmease-dev, r=albertlarsan68
[rust.git] / tests / ui / inference / issue-86162-1.stderr
1 error[E0283]: type annotations needed
2   --> $DIR/issue-86162-1.rs:7:9
3    |
4 LL |     foo(gen()); //<- Do not suggest `foo::<impl Clone>()`!
5    |     --- ^^^ cannot infer type of the type parameter `T` declared on the function `gen`
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = note: cannot satisfy `_: Clone`
10 note: required by a bound in `foo`
11   --> $DIR/issue-86162-1.rs:3:16
12    |
13 LL | fn foo(x: impl Clone) {}
14    |                ^^^^^ required by this bound in `foo`
15 help: consider specifying the generic argument
16    |
17 LL |     foo(gen::<T>()); //<- Do not suggest `foo::<impl Clone>()`!
18    |            +++++
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0283`.