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