File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
src/test/ui/consts/const_in_pattern Expand file tree Collapse file tree 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.
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 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
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
137error: aborting due to previous error
148
15- For more information about this error, try `rustc --explain E0601`.
You can’t perform that action at this time.
0 commit comments