rust/src/test/ui/traits/augmented-assignments-trait.rs
2019-07-27 18:56:16 +03:00

13 lines
167 B
Rust

// run-pass
use std::ops::AddAssign;
struct Int(i32);
impl AddAssign for Int {
fn add_assign(&mut self, _: Int) {
unimplemented!()
}
}
fn main() {}