mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add some more tests
This commit is contained in:
parent
6e85f467c5
commit
0030a777f2
@ -42,4 +42,15 @@ fn main() {
|
|||||||
(2 | 1, 4) => {} //~ ERROR unreachable pattern
|
(2 | 1, 4) => {} //~ ERROR unreachable pattern
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
match (Some(0u8),) {
|
||||||
|
(None | Some(1 | 2),) => {}
|
||||||
|
(Some(1),) => {} //~ ERROR unreachable pattern
|
||||||
|
(None,) => {} //~ ERROR unreachable pattern
|
||||||
|
(Some(_),) => {}
|
||||||
|
}
|
||||||
|
match ((0u8,),) {
|
||||||
|
((1 | 2,) | (3 | 4,),) => {},
|
||||||
|
((1..=4,),) => {}, //~ ERROR unreachable pattern
|
||||||
|
((_,),) => {},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user