rust/src/test/ui/parser/issue-10392.rs

10 lines
147 B
Rust
Raw Normal View History

// compile-flags: -Z parse-only
struct A { foo: isize }
fn a() -> A { panic!() }
fn main() {
let A { , } = a(); //~ ERROR: expected ident
}