summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-on-bare-closure-call.rs
blob: 496c305bc2aff4947a999342447dfceae16b2e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
// edition:2021

#![feature(async_closure)]

fn main() {
    let _ = ||{}();
    //~^ ERROR expected function, found `()`

    let _ = async ||{}();
    //~^ ERROR expected function, found `()`
}