Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
assign-while-to-immutable.rs
blob: 991f9c3e45cea9643b07a589f114aa9e2f75b6ad [
file
] [
log
] [
blame
] [
edit
]
// We used to incorrectly assign to `x` twice when generating MIR for this
// function, preventing this from compiling.
//@ check-pass
fn
main
()
{
let
x
:
()
=
while
false
{
break
;
};
let
y
:
()
=
'l: while break '
l
{};
}