rust/tests/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
204 B
Rust
Raw Normal View History

// run-pass
2015-09-17 00:29:26 -05:00
use std::ops::AddAssign;
2022-07-25 15:36:03 -05:00
struct Int(#[allow(unused_tuple_struct_fields)] i32);
2015-09-17 00:29:26 -05:00
impl AddAssign for Int {
fn add_assign(&mut self, _: Int) {
unimplemented!()
}
}
fn main() {}