]> git.proxmox.com Git - rustc.git/blame - src/test/ui/inference/issue-86162-1.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / inference / issue-86162-1.stderr
CommitLineData
94222f64 1error[E0283]: type annotations needed
923072b8 2 --> $DIR/issue-86162-1.rs:7:9
94222f64
XL
3 |
4LL | 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`
8note: required by a bound in `foo`
9 --> $DIR/issue-86162-1.rs:3:16
10 |
11LL | fn foo(x: impl Clone) {}
12 | ^^^^^ required by this bound in `foo`
923072b8
FG
13help: consider specifying the generic argument
14 |
15LL | foo(gen::<T>()); //<- Do not suggest `foo::<impl Clone>()`!
16 | +++++
94222f64
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0283`.