]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/entry_fixable.stderr
Rollup merge of #72591 - sexxi-goose:rename_upvar_list-to-closure_captures, r=matthew...
[rust.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