]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/fn-recover-return-sign2.rs
Auto merge of #88652 - AGSaidi:linux-aarch64-should-be-actually-monotonic, r=yaahc
[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 }