Fix ICE in question_mark
This commit is contained in:
parent
20e4204730
commit
2255cfd2ab
2 changed files with 10 additions and 2 deletions
8
tests/ui/crashes/ice-9242.rs
Normal file
8
tests/ui/crashes/ice-9242.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
enum E {
|
||||
X(),
|
||||
Y,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _ = if let E::X() = E::X() { 1 } else { 2 };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue