1 error[E0368]: binary assignment operation `+=` cannot be applied to type `T`
2 --> $DIR/issue-6738.rs:6:9
7 | cannot use `+=` on type `T`
9 help: consider restricting type parameter `T`
11 LL | impl<T: std::ops::AddAssign> Foo<T> {
12 | +++++++++++++++++++++
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0368`.