]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/fn-needing-specified-return-type-param.rs
Auto merge of #104449 - oli-obk:unhide_unknown_spans, r=estebank,RalfJung
[rust.git] / src / test / ui / suggestions / fn-needing-specified-return-type-param.rs
1 fn f<A>() -> A { unimplemented!() }
2 fn foo() {
3     let _ = f;
4     //~^ ERROR type annotations needed
5     //~| HELP consider specifying the generic argument
6 }
7 fn main() {}