rust/tests/pass/issue-17877.rs

12 lines
226 B
Rust
Raw Normal View History

2016-09-28 11:22:09 -05:00
fn main() {
2019-11-20 12:38:41 -06:00
assert_eq!(match [0u8; 16*1024] {
2016-09-28 11:22:09 -05:00
_ => 42_usize,
}, 42_usize);
2019-11-20 12:38:41 -06:00
assert_eq!(match [0u8; 16*1024] {
2019-07-29 03:21:59 -05:00
[1, ..] => 0_usize,
[0, ..] => 1_usize,
2016-09-28 11:22:09 -05:00
_ => 2_usize
}, 1_usize);
}