Sign in
◑
Theme
rust
/
rust
/
a123594de1feec1732ed9251135bc42ccaaef8f3
/
.
/
tests
/
ui
/
binding
/
invalid-assignment-in-while-77218.rs
blob: 9f249180e83a20ed4027c414f99429eca78bf03b [
file
]
// https://github.com/rust-lang/rust/issues/77218
//@ run-rustfix
fn
main
()
{
let
value
=
[
7u8
];
while
Some
(
0
)
=
value
.
get
(
0
)
{}
//~ ERROR invalid left-hand side of assignment
}