]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type/type-annotation-needed.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type / type-annotation-needed.stderr
1 error[E0283]: type annotations needed
2 --> $DIR/type-annotation-needed.rs:5:5
3 |
4 LL | fn foo<T: Into<String>>(x: i32) {}
5 | ------------ required by this bound in `foo`
6 ...
7 LL | foo(42);
8 | ^^^ cannot infer type for type parameter `T` declared on the function `foo`
9 |
10 = note: cannot satisfy `_: Into<String>`
11 help: consider specifying the type argument in the function call
12 |
13 LL | foo::<T>(42);
14 | ^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0283`.