summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/fn-recover-return-sign2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/fn/fn-recover-return-sign2.rs')
-rw-r--r--tests/ui/fn/fn-recover-return-sign2.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/fn/fn-recover-return-sign2.rs b/tests/ui/fn/fn-recover-return-sign2.rs
new file mode 100644
index 000000000..31f56565c
--- /dev/null
+++ b/tests/ui/fn/fn-recover-return-sign2.rs
@@ -0,0 +1,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!()
+}