diff options
Diffstat (limited to 'tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs')
| -rw-r--r-- | tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs new file mode 100644 index 00000000000..b2e9ffb5772 --- /dev/null +++ b/tests/ui/half-open-range-patterns/exclusive_range_pattern_syntax_collision.rs @@ -0,0 +1,10 @@ +#![feature(half_open_range_patterns_in_slices)] +#![feature(exclusive_range_pattern)] + +fn main() { + match [5..4, 99..105, 43..44] { + [_, 99.., _] => {}, + //~^ ERROR mismatched types + _ => {}, + } +} |
