rust/tests/ui/half-open-range-patterns/pat-tuple-5.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
151 B
Rust
Raw Normal View History

#![feature(exclusive_range_pattern)]
fn main() {
const PAT: u8 = 1;
match (0, 1) {
(PAT ..) => {} //~ ERROR mismatched types
}
}