``` #![feature(exclusive_range_pattern)] fn main() { let a: u8 = 11; match a { 1..11 => println!("1 to 10"), 11 => println!("11"), // warning: unreachable pattern _ => println!("else"), }; } ``` With rust nightly compiler, the result on the screen is `11` even though the compiler warning that 11 case is unreachable. Link to rust playground: https://play.rust-lang.org/?gist=a3c8f0a3cfa3209a52992aedf9220720&version=nightly
With rust nightly compiler, the result on the screen is
11even though the compiler warning that 11 case is unreachable.Link to rust playground: https://play.rust-lang.org/?gist=a3c8f0a3cfa3209a52992aedf9220720&version=nightly