1
Fork 0
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
190 B
Rust
Raw Normal View History

2024-02-29 14:08:01 +08:00
//@ check-pass
2015-09-17 00:29:26 -05:00
use std::ops::AddAssign;
struct Int(#[allow(dead_code)] i32);
2015-09-17 00:29:26 -05:00
impl AddAssign for Int {
fn add_assign(&mut self, _: Int) {
unimplemented!()
}
}
fn main() {}