Closed
Description
fn main() {
let x = (0,2);
match x {
(0, ref y) => { /* use y */}
(y, 0) => { /* use y */ }
_ => ()
}
}
I had this error on play.rust-lang on release, beta and nightly.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
jonas-schievink commentedon May 8, 2016
Backtrace:
Manishearth commentedon May 8, 2016
This seems to be because
(0, ref y)
is not considered scalar?Manishearth commentedon May 9, 2016
When this is fixed the ignore in #33493 should be removed too
TimNN commentedon Aug 6, 2016
This seems to be fixed on playpen nightly.
alexcrichton commentedon Aug 7, 2016
Yay! tagging as needstest
GuillaumeGomez commentedon Aug 7, 2016
I'm adding test then.
Rollup merge of rust-lang#35458 - GuillaumeGomez:test_string_ICE, r=a…
Rollup merge of rust-lang#35458 - GuillaumeGomez:test_string_ICE, r=a…
coder543 commentedon Aug 24, 2016
which commit fixed this issue? I would be very curious to see it.
arielb1 commentedon Aug 25, 2016
The issue was never present in MIR.