]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/suspicious_assignment_formatting.txt
Auto merge of #104673 - matthiaskrgr:rollup-85f65ov, r=matthiaskrgr
[rust.git] / src / tools / clippy / src / docs / suspicious_assignment_formatting.txt
1 ### What it does
2 Checks for use of the non-existent `=*`, `=!` and `=-`
3 operators.
4
5 ### Why is this bad?
6 This is either a typo of `*=`, `!=` or `-=` or
7 confusing.
8
9 ### Example
10 ```
11 a =- 42; // confusing, should it be `a -= 42` or `a = -42`?
12 ```