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 05:29:26 +00:00
use std::ops::AddAssign;
2022-07-25 20:36:03 +00:00
struct Int(#[allow(unused_tuple_struct_fields)] i32);
2015-09-17 05:29:26 +00:00
impl AddAssign for Int {
fn add_assign(&mut self, _: Int) {
unimplemented!()
}
}
fn main() {}