summaryrefslogtreecommitdiffstats
path: root/src/test/ui/fn/fn-recover-return-sign2.rs
blob: 31f56565c49a6ce8b3f79c2aed4f991dbf8590bf (plain)
1
2
3
4
5
6
7
8
// 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!()
}