Sign in
fuchsia
/
third_party
/
rust
/
13ef05e2be9862ea7b94d0b42e0b2d044b3c7f6b
/
.
/
tests
/
ui
/
mismatched_types
/
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`
}