]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/entry_fixable.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / entry_fixable.stderr
1 error: usage of `contains_key` followed by `insert` on a `HashMap`
2 --> $DIR/entry_fixable.rs:12:5
3 |
4 LL | / if !m.contains_key(&k) {
5 LL | | m.insert(k, v);
6 LL | | }
7 | |_____^ help: consider using: `m.entry(k).or_insert(v);`
8 |
9 = note: `-D clippy::map-entry` implied by `-D warnings`
10
11 error: aborting due to previous error
12