Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
issues
/
issue-6738.rs
blob: a2f8dfe9c493cf4fe5b88715faf8391ad9c22c06 [
file
] [
log
] [
blame
]
struct
Foo
<
T
>
{
x
:
T
,
}
impl
<
T
>
Foo
<
T
>
{
fn
add
(&
mut
self
,
v
:
Foo
<
T
>){
self
.
x
+=
v
.
x
;
//~^ ERROR: binary assignment operation `+=` cannot be applied
}
}
fn
main
()
{}