rust/src/test/ui/traits/augmented-assignments-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
167 B
Rust
Raw Normal View History

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