]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/or-patterns/exhaustiveness-non-exhaustive.rs
1 #![deny(unreachable_patterns)]
3 // We wrap patterns in a tuple because top-level or-patterns were special-cased.
6 //~^ ERROR non-exhaustive patterns: `(2_u8..=u8::MAX, _)`
10 //~^ ERROR non-exhaustive patterns: `((4_u8..=u8::MAX))`
11 ((0 | 1,) | (2 | 3,),) => {}
14 //~^ ERROR non-exhaustive patterns: `(Some(2_u8..=u8::MAX))`
15 (None
| Some(0 | 1),) => {}