]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-lt-bracket-7.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / test / ui / parser / pat-lt-bracket-7.rs
1 fn main() {
2     struct Thing(u8, [u8; 0]);
3     let foo = core::iter::empty();
4
5     for Thing(x[]) in foo {}
6     //~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
7 }
8
9 const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types