mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
23 lines
729 B
Plaintext
23 lines
729 B
Plaintext
error: mutable key type
|
|
--> $DIR/mut_key.rs:27:32
|
|
|
|
|
LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `#[deny(clippy::mutable_key_type)]` on by default
|
|
|
|
error: mutable key type
|
|
--> $DIR/mut_key.rs:27:72
|
|
|
|
|
LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> {
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: mutable key type
|
|
--> $DIR/mut_key.rs:28:5
|
|
|
|
|
LL | let _other: HashMap<Key, bool> = HashMap::new();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|