diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/suggestions/suggest-on-bare-closure-call.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/suggest-on-bare-closure-call.rs b/src/test/ui/suggestions/suggest-on-bare-closure-call.rs new file mode 100644 index 000000000..496c305bc --- /dev/null +++ b/src/test/ui/suggestions/suggest-on-bare-closure-call.rs @@ -0,0 +1,11 @@ +// edition:2021 + +#![feature(async_closure)] + +fn main() { + let _ = ||{}(); + //~^ ERROR expected function, found `()` + + let _ = async ||{}(); + //~^ ERROR expected function, found `()` +} |