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

Commit dba3372

Browse files
JohnTitorDylan-DPC
authored andcommitted
Add issue-65466 (#174)
1 parent 5e5956a commit dba3372

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ices/65466.rs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#![deny(indirect_structural_match)]
2+
3+
#[derive(PartialEq, Eq)]
4+
enum O<T> {
5+
Some(*const T), // Can also use PhantomData<T>
6+
None,
7+
}
8+
9+
struct B;
10+
11+
const C: &[O<B>] = &[O::None];
12+
13+
pub fn foo() {
14+
let x = O::None;
15+
match &[x][..] {
16+
C => (),
17+
_ => (),
18+
}
19+
}
20+
21+
fn main() {}

0 commit comments

Comments
 (0)