diff options
Diffstat (limited to 'tests/ui/closures/closure-expected.rs')
-rw-r--r-- | tests/ui/closures/closure-expected.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/closures/closure-expected.rs b/tests/ui/closures/closure-expected.rs new file mode 100644 index 000000000..68cac3dd8 --- /dev/null +++ b/tests/ui/closures/closure-expected.rs @@ -0,0 +1,5 @@ +fn main() { + let x = Some(1); + let y = x.or_else(4); + //~^ ERROR expected a `FnOnce<()>` closure, found `{integer}` +} |