mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 04:46:58 +00:00

When parsing a closure without a body that is surrounded by a block, suggest moving the opening brace after the closure head. Fix #116608.
7 lines
143 B
Rust
7 lines
143 B
Rust
pub fn test() {
|
|
foo(|_|) //~ ERROR expected expression, found `)`
|
|
//~^ ERROR cannot find function `foo` in this scope
|
|
}
|
|
|
|
fn main() { }
|