1 error[E0283]: type annotations needed
2 --> $DIR/type-annotation-needed.rs:6:5
5 | ^^^ cannot infer type of the type parameter `T` declared on the function `foo`
7 = note: cannot satisfy `_: Into<String>`
8 note: required by a bound in `foo`
9 --> $DIR/type-annotation-needed.rs:1:11
11 LL | fn foo<T: Into<String>>(x: i32) {}
12 | ^^^^^^^^^^^^ required by this bound in `foo`
13 help: consider specifying the generic argument
17 help: consider specifying the type argument in the function call
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0283`.