]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-annotation-needed.rs
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / test / ui / type / type-annotation-needed.rs
1 fn foo<T: Into<String>>(x: i32) {}
2 //~^ NOTE required by
3 //~| NOTE required by
4
5 fn main() {
6     foo(42);
7     //~^ ERROR type annotations needed
8     //~| NOTE cannot infer type
9     //~| NOTE cannot satisfy
10 }