Skip to content

Commit

Permalink
Run regression test for #65466
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed May 17, 2020
1 parent ca53cda commit 2137e0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
5 changes: 2 additions & 3 deletions src/test/ui/consts/const_in_pattern/issue-65466.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// FIXME: This still ICEs.
//
// ignore-test
// This used to ICE in #65466.

#![deny(indirect_structural_match)]

Expand All @@ -18,6 +16,7 @@ fn main() {
let x = O::None;
match &[x][..] {
C => (),
//~^ must implement `PartialEq`
_ => (),
}
}
15 changes: 4 additions & 11 deletions src/test/ui/consts/const_in_pattern/issue-65466.stderr
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
error[E0601]: `main` function not found in crate `issue_65466`
--> $DIR/issue-65466.rs:1:1
error: `&[O<B>]` must implement `PartialEq` to be used in a pattern
--> $DIR/issue-65466.rs:18:9
|
LL | / #![deny(indirect_structural_match)]
LL | |
LL | | #[derive(PartialEq, Eq)]
LL | | enum O<T> {
... |
LL | | }
LL | | }
| |_^ consider adding a `main` function to `$DIR/issue-65466.rs`
LL | C => (),
| ^

error: aborting due to previous error

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

0 comments on commit 2137e0e

Please sign in to comment.