Skip to content

Commit 2137e0e

Browse files
Run regression test for #65466
1 parent ca53cda commit 2137e0e

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/test/ui/consts/const_in_pattern/issue-65466.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// FIXME: This still ICEs.
2-
//
3-
// ignore-test
1+
// This used to ICE in #65466.
42

53
#![deny(indirect_structural_match)]
64

@@ -18,6 +16,7 @@ fn main() {
1816
let x = O::None;
1917
match &[x][..] {
2018
C => (),
19+
//~^ must implement `PartialEq`
2120
_ => (),
2221
}
2322
}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
error[E0601]: `main` function not found in crate `issue_65466`
2-
--> $DIR/issue-65466.rs:1:1
1+
error: `&[O<B>]` must implement `PartialEq` to be used in a pattern
2+
--> $DIR/issue-65466.rs:18:9
33
|
4-
LL | / #![deny(indirect_structural_match)]
5-
LL | |
6-
LL | | #[derive(PartialEq, Eq)]
7-
LL | | enum O<T> {
8-
... |
9-
LL | | }
10-
LL | | }
11-
| |_^ consider adding a `main` function to `$DIR/issue-65466.rs`
4+
LL | C => (),
5+
| ^
126

137
error: aborting due to previous error
148

15-
For more information about this error, try `rustc --explain E0601`.

0 commit comments

Comments
 (0)