summary refs log tree commit diff
path: root/src/test/ui/augmented-assignments-feature-gate.rs
blob: 8e686796fee9bc69002192e2c60a4d3a45c03834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

use std::ops::AddAssign;

struct Int(i32);

impl AddAssign<i32> for Int {
    fn add_assign(&mut self, _: i32) {
    }
}

fn main() {
    let mut x = Int(0);
    x += 1;
}