rust/tests/ui/suggestions/suggest-on-bare-closure-call.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
196 B
Rust
Raw Normal View History

// edition:2021
#![feature(async_closure)]
fn main() {
let _ = ||{}();
//~^ ERROR expected function, found `()`
let _ = async ||{}();
//~^ ERROR expected function, found `()`
}