]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-annotation-needed.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[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 }