Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 7396233

Browse files
authored
Merge pull request #1061 from matthiaskrgr/ices_dec_19
2 parents bd77f1f + fee159d commit 7396233

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

ices/92074.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pub enum En {
2+
A(Vec<u8>)
3+
}
4+
5+
fn f() -> Result<(), impl core::fmt::Debug> {
6+
let x: En = loop {};
7+
8+
assert!(matches!(x, En::A(vec![])));
9+
Ok::<(), &'static str>(())
10+
}

ices/92100-0.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn main() {
2+
let v = vec![0123456789];
3+
let mid = v.len() / 2;
4+
let s = &v;
5+
match s {
6+
[a..mid, mid, mid..b] => {}
7+
[..] => {}
8+
}
9+
}

ices/92100-1.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fn main() {
2+
match &vec![0] {
3+
[a..1, a, a..1] | _ => {}
4+
}
5+
}

0 commit comments

Comments
 (0)