2019-12-06 18:45:33 +00:00
|
|
|
error: mutable key type
|
2020-04-03 02:09:30 +00:00
|
|
|
--> $DIR/mut_key.rs:27:32
|
2019-12-06 18:45:33 +00:00
|
|
|
|
|
|
|
|
LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-06-14 19:09:17 +00:00
|
|
|
= note: `-D clippy::mutable-key-type` implied by `-D warnings`
|
2019-12-06 18:45:33 +00:00
|
|
|
|
|
|
|
error: mutable key type
|
2020-04-03 02:09:30 +00:00
|
|
|
--> $DIR/mut_key.rs:27:72
|
2019-12-06 18:45:33 +00:00
|
|
|
|
|
|
|
|
LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> {
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: mutable key type
|
2020-04-03 02:09:30 +00:00
|
|
|
--> $DIR/mut_key.rs:28:5
|
2019-12-06 18:45:33 +00:00
|
|
|
|
|
|
|
|
LL | let _other: HashMap<Key, bool> = HashMap::new();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-01-16 23:18:37 +00:00
|
|
|
error: mutable key type
|
2020-04-03 02:09:30 +00:00
|
|
|
--> $DIR/mut_key.rs:47:22
|
2020-01-16 23:18:37 +00:00
|
|
|
|
|
|
|
|
LL | fn tuples_bad<U>(_m: &mut HashMap<(Key, U), bool>) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2019-12-06 18:45:33 +00:00
|
|
|
|