]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-recover-return-sign2.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / fn / fn-recover-return-sign2.rs
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
3
4 fn foo() => impl Fn() => bool {
5     //~^ ERROR return types are denoted using `->`
6     //~| ERROR expected one of `+`, `->`, `::`, `;`, `where`, or `{`, found `=>`
7     unimplemented!()
8 }