Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
binop
/
false-binop-caused-by-missing-semi.fixed
blob: 6ad6aa0ccef080b85085550c001f85e2632c397c [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn foo
()
{}
fn main
()
{
let
mut y
=
42
;
let
x
=
&
mut y
;
foo
();
*
x
=
0
;
//~ ERROR invalid left-hand side of assignment
let
_
=
x
;
println
!(
"{y}"
);
}