rust/tests/ui/traits/augmented-assignments-trait.rs
2024-02-16 20:02:50 +00:00

13 lines
188 B
Rust

//@ run-pass
use std::ops::AddAssign;
struct Int(#[allow(dead_code)] i32);
impl AddAssign for Int {
fn add_assign(&mut self, _: Int) {
unimplemented!()
}
}
fn main() {}