rust/tests/ui/parser/issues/issue-32505.rs

7 lines
143 B
Rust

pub fn test() {
foo(|_|) //~ ERROR expected expression, found `)`
//~^ ERROR cannot find function `foo` in this scope
}
fn main() { }