mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
962c0140c7
Co-authored-by: Max Niederman <max@maxniederman.com>
10 lines
241 B
Rust
10 lines
241 B
Rust
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
|