1 #![feature(or_patterns)]
3 #![allow(incomplete_features)]
4 #![deny(unreachable_patterns)]
6 // We wrap patterns in a tuple because top-level or-patterns are special-cased for now.
8 // Get the fatal error out of the way
11 //~^ ERROR or-patterns are not fully implemented yet
26 (None | Some(0 | 1),) => {}
27 (Some(2..=255),) => {}
30 ((0 | 1,) | (2 | 3,),) => {},
34 ([] | [0 | 1..=255] | [_, ..],) => {},
38 ((0, 0) | (0, 1),) => {}
42 ((0, 0) | (1, 0),) => {}