]> git.lizzy.rs Git - rust.git/blob - src/test/ui/augmented-assignments-feature-gate.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / augmented-assignments-feature-gate.rs
1 // run-pass
2
3 use std::ops::AddAssign;
4
5 struct Int(i32);
6
7 impl AddAssign<i32> for Int {
8     fn add_assign(&mut self, _: i32) {
9     }
10 }
11
12 fn main() {
13     let mut x = Int(0);
14     x += 1;
15 }