]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/mut_key.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / mut_key.stderr
CommitLineData
f20569fa
XL
1error: mutable key type
2 --> $DIR/mut_key.rs:27:32
3 |
4LL | 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
9error: mutable key type
10 --> $DIR/mut_key.rs:27:72
11 |
12LL | fn should_not_take_this_arg(m: &mut HashMap<Key, usize>, _n: usize) -> HashSet<Key> {
13 | ^^^^^^^^^^^^
14
15error: mutable key type
16 --> $DIR/mut_key.rs:28:5
17 |
18LL | let _other: HashMap<Key, bool> = HashMap::new();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
21error: mutable key type
22 --> $DIR/mut_key.rs:47:22
23 |
24LL | fn tuples_bad<U>(_m: &mut HashMap<(Key, U), bool>) {}
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27error: aborting due to 4 previous errors
28