Add test case for labeled break in const assignment

See https://github.com/rust-lang/rust/issues/51350 for more information.
上级 012c3007
// Using labeled break in a while loop has caused an illegal instruction being
// generated, and an ICE later.
//
// See https://github.com/rust-lang/rust/issues/51350 for more information.
const CRASH: () = 'a: while break 'a {};
fn main() {
println!("{:?}", CRASH);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册