]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-tuple-4.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / pat-tuple-4.rs
1 fn main() {
2     const PAT: u8 = 0;
3
4     match 0 {
5         (.. PAT) => {}
6         //~^ ERROR `..X` range patterns are not supported
7         //~| ERROR exclusive range pattern syntax is experimental
8     }
9 }
10
11 const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types