]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/fn-needing-specified-return-type-param.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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() {}