Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
assignment-operator-unimplemented.rs
blob: 21df464d5e4500db8972eacda01ab1d94d1fa059 [
file
] [
log
] [
blame
]
struct
Foo
;
fn
main
()
{
let
mut
a
=
Foo
;
let
ref
b
=
Foo
;
a
+=
*
b
;
//~ Error: binary assignment operation `+=` cannot be applied to type `Foo`
}