2019-06-15 04:08:20 -05: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 03:55:36 -05:00
|
|
|
let x: () = while false {
|
2019-06-15 04:08:20 -05:00
|
|
|
break;
|
|
|
|
};
|
2023-06-12 03:55:36 -05:00
|
|
|
let y: () = 'l: while break 'l {};
|
2019-06-15 04:08:20 -05:00
|
|
|
}
|