fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
827 B22 linesraw
1error[E0283]: type annotations needed
2  --> $DIR/issue-71732.rs:18:10
3   |
4LL |         .get(&"key".into())
5   |          ^^^ ------------- type must be known at this point
6   |          |
7   |          cannot infer type of the type parameter `Q` declared on the method `get`
8   |
9   = note: multiple `impl`s satisfying `String: Borrow<_>` found in the following crates: `alloc`, `core`:
10           - impl Borrow<str> for String;
11           - impl<T> Borrow<T> for T
12             where T: ?Sized;
13note: required by a bound in `HashMap::<K, V, S>::get`
14  --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
15help: consider specifying the generic argument
16   |
17LL |         .get::<Q>(&"key".into())
18   |             +++++
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0283`.