summaryrefslogtreecommitdiffstats
path: root/tests/ui/auxiliary/augmented_assignments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/auxiliary/augmented_assignments.rs')
-rw-r--r--tests/ui/auxiliary/augmented_assignments.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/auxiliary/augmented_assignments.rs b/tests/ui/auxiliary/augmented_assignments.rs
new file mode 100644
index 000000000..d0d3f5745
--- /dev/null
+++ b/tests/ui/auxiliary/augmented_assignments.rs
@@ -0,0 +1,8 @@
+use std::ops::AddAssign;
+
+pub struct Int(pub i32);
+
+impl AddAssign<i32> for Int {
+ fn add_assign(&mut self, _: i32) {
+ }
+}