mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Write down adjustments introduced by binary operators
This commit is contained in:
parent
17cc78f169
commit
f51111aacb
4 changed files with 84 additions and 19 deletions
|
@ -382,6 +382,12 @@ pub mod ops {
|
|||
type Output;
|
||||
fn add(self, rhs: Rhs) -> Self::Output;
|
||||
}
|
||||
|
||||
#[lang = "add_assign"]
|
||||
#[const_trait]
|
||||
pub trait AddAssign<Rhs = Self> {
|
||||
fn add_assign(&mut self, rhs: Rhs);
|
||||
}
|
||||
// endregion:add
|
||||
|
||||
// region:generator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue