File tree 2 files changed +6
-14
lines changed
src/test/ui/consts/const_in_pattern
2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
- // FIXME: This still ICEs.
2
- //
3
- // ignore-test
1
+ // This used to ICE in #65466.
4
2
5
3
#![ deny( indirect_structural_match) ]
6
4
@@ -18,6 +16,7 @@ fn main() {
18
16
let x = O :: None ;
19
17
match & [ x] [ ..] {
20
18
C => ( ) ,
19
+ //~^ must implement `PartialEq`
21
20
_ => ( ) ,
22
21
}
23
22
}
Original file line number Diff line number Diff line change 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
3
3
|
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
+ | ^
12
6
13
7
error: aborting due to previous error
14
8
15
- For more information about this error, try `rustc --explain E0601`.
You can’t perform that action at this time.
0 commit comments