Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
binding
/
invalid-assignment-in-while-loop-77218.rs
blob: 9f249180e83a20ed4027c414f99429eca78bf03b [
file
] [
log
] [
blame
]
// 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
}