]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-6738.rs
Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-6738.rs
1 struct Foo<T> {
2     x: T,
3 }
4 impl<T> Foo<T> {
5     fn add(&mut self, v: Foo<T>){
6         self.x += v.x;
7         //~^ ERROR: binary assignment operation `+=` cannot be applied
8     }
9 }
10 fn main() {}