summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type/type-annotation-needed.rs
blob: 347887f4bcfd5584ae8f856fa678c701768a3269 (plain)
1
2
3
4
5
6
7
8
9
10
fn foo<T: Into<String>>(x: i32) {}
//~^ NOTE required by
//~| NOTE required by

fn main() {
    foo(42);
    //~^ ERROR type annotations needed
    //~| NOTE cannot infer type
    //~| NOTE cannot satisfy
}