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