mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
9 lines
235 B
Rust
9 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
|