2019-06-15 10:08:20 +01:00
|
|
|
// We used to incorrectly assign to `x` twice when generating MIR for this
|
|
|
|
// function, preventing this from compiling.
|
|
|
|
|
|
|
|
// check-pass
|
|
|
|
|
|
|
|
fn main() {
|
2023-06-12 16:55:36 +08:00
|
|
|
let x: () = while false {
|
2019-06-15 10:08:20 +01:00
|
|
|
break;
|
|
|
|
};
|
2023-06-12 16:55:36 +08:00
|
|
|
let y: () = 'l: while break 'l {};
|
2019-06-15 10:08:20 +01:00
|
|
|
}
|