about summary refs log tree commit diff
path: root/tests/ui/traits/augmented-assignments-trait.rs
blob: a0f8b39eb7a3a46cee1653587ab1d7edc80b6585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass
use std::ops::AddAssign;

struct Int(#[allow(dead_code)] i32);

impl AddAssign for Int {
    fn add_assign(&mut self, _: Int) {
        unimplemented!()
    }
}

fn main() {}