]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-recover-return-sign2.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[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 }