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

5 lines
79 B
Rust

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