summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/fn-needing-specified-return-type-param.rs
blob: bcc91b5cb4c56cba73b007766acbc7aa4656caca (plain)
1
2
3
4
5
6
7
fn f<A>() -> A { unimplemented!() }
fn foo() {
    let _ = f;
    //~^ ERROR type annotations needed
    //~| HELP consider specifying the generic argument
}
fn main() {}