rust/tests/run-pass/issue-17877.rs

12 lines
226 B
Rust
Raw Normal View History

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