]> git.lizzy.rs Git - rust.git/blob - src/docs/suspicious_assignment_formatting.txt
Add iter_kv_map lint
[rust.git] / 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 ```