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