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