]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: mutable key type |
2 | --> $DIR/mut_key.rs:27:32 | |
3 | | | |
4 | LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> { | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `#[deny(clippy::mutable_key_type)]` on by default | |
8 | ||
9 | error: mutable key type | |
10 | --> $DIR/mut_key.rs:27:72 | |
11 | | | |
12 | LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> { | |
13 | | ^^^^^^^^^^^^ | |
14 | ||
15 | error: mutable key type | |
16 | --> $DIR/mut_key.rs:28:5 | |
17 | | | |
18 | LL | let _other: HashMap<Key, bool> = HashMap::new(); | |
19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
20 | ||
21 | error: mutable key type | |
22 | --> $DIR/mut_key.rs:47:22 | |
23 | | | |
24 | LL | fn tuples_bad<U>(_m: &mut HashMap<(Key, U), bool>) {} | |
25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
26 | ||
27 | error: aborting due to 4 previous errors | |
28 |