rust/tests/ui/fn/fn-recover-return-sign2.rs
2023-01-11 09:32:08 +00:00

9 lines
338 B
Rust

// Separate test file because `Fn() => bool` isn't getting fixed and rustfix complained that
// even though a fix was applied the code was still incorrect
fn foo() => impl Fn() => bool {
//~^ ERROR return types are denoted using `->`
//~| ERROR expected one of `+`, `->`, `::`, `where`, or `{`, found `=>`
unimplemented!()
}