summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/suspicious_assignment_formatting.txt
blob: b889827cdf27fc926ebcf8286a2da63389d4ecee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
### What it does
Checks for use of the non-existent `=*`, `=!` and `=-`
operators.

### Why is this bad?
This is either a typo of `*=`, `!=` or `-=` or
confusing.

### Example
```
a =- 42; // confusing, should it be `a -= 42` or `a = -42`?
```