-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
fn main() {
let x = (0,2);
match x {
(0, ref y) => { /* use y */}
(y, 0) => { /* use y */ }
_ => ()
}
}This causes an ICE at error: internal compiler error: ../src/librustc_trans/_match.rs:944: only string and byte strings supported in compare_values on stable, beta, and nightly.
It goes away if you swap the match arms.
Metadata
Metadata
Assignees
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️