rust/tests/ui/suggestions/fn-needing-specified-return...

8 lines
171 B
Rust

fn f<A>() -> A { unimplemented!() }
fn foo() {
let _ = f;
//~^ ERROR type annotations needed
//~| HELP consider specifying the generic argument
}
fn main() {}