mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-30 22:07:58 +00:00
- `tests/ui/augmented-assignment-feature-gate-cross.rs`:
- This was *originally* to feature-gate overloaded OpAssign
cross-crate, but now let's keep it as a smoke test.
- Renamed as `augmented-assignment-cross-crate.rs`.
- Relocated under `tests/ui/binop/`.
- `tests/ui/augmented-assignments.rs`:
- Documented test intent.
- Moved under `tests/ui/borrowck/`.
- `tests/ui/augmented-assignment-rpass.rs`:
- Renamed to drop the `-rpass` suffix, since this was leftover from
when `run-pass` test suite was a thing.
- Moved under `tests/ui/binop/`.
9 lines
129 B
Rust
9 lines
129 B
Rust
use std::ops::AddAssign;
|
|
|
|
pub struct Int(pub i32);
|
|
|
|
impl AddAssign<i32> for Int {
|
|
fn add_assign(&mut self, _: i32) {
|
|
}
|
|
}
|