blob: abaeb4c83c05f1a6265577b5be4b08b3378c860f (
plain)
1
2
3
4
5
6
7
8
9
|
fn main() {
struct Thing(u8, [u8; 0]);
let foo = core::iter::empty();
for Thing(x[]) in foo {}
//~^ ERROR: expected one of `)`, `,`, `@`, `if`, or `|`, found `[`
}
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
|