]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/match-range-fail-dominate.rs
1 #![deny(unreachable_patterns, overlapping_patterns)]
7 //~^ ERROR unreachable pattern
14 //~^ ERROR unreachable pattern
21 //~^ ERROR unreachable pattern
28 //~^ ERROR unreachable pattern
33 0.01f64 ..= 6.5f64 => {}
34 //~^ WARNING floating-point types cannot be used in patterns
35 //~| WARNING floating-point types cannot be used in patterns
36 //~| WARNING floating-point types cannot be used in patterns
37 //~| WARNING floating-point types cannot be used in patterns
38 //~| WARNING this was previously accepted by the compiler
39 //~| WARNING this was previously accepted by the compiler
40 //~| WARNING this was previously accepted by the compiler
41 //~| WARNING this was previously accepted by the compiler
42 0.02f64 => {}
//~ ERROR unreachable pattern
43 //~^ WARNING floating-point types cannot be used in patterns
44 //~| WARNING floating-point types cannot be used in patterns
45 //~| WARNING this was previously accepted by the compiler
46 //~| WARNING this was previously accepted by the compiler