rust/tests/ui/parser/pat-lt-bracket-7.rs
2023-01-11 09:32:08 +00:00

10 lines
235 B
Rust

fn main() {
struct Thing(u8, [u8; 0]);
let foo = core::iter::empty();
for Thing(x[]) in foo {}
//~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
}
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types