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

10 lines
234 B
Rust

fn main() {
struct Test(&'static u8, [u8; 0]);
let x = Test(&0, []);
let Test(&desc[..]) = x;
//~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
}
const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types