1 error[E0283]: type annotations needed
2 --> $DIR/issue-71732.rs:18:10
4 LL | .get(&"key".into())
5 | ^^^ cannot infer type of the type parameter `Q` declared on the associated function `get`
7 = note: multiple `impl`s satisfying `String: Borrow<_>` found in the following crates: `alloc`, `core`:
8 - impl Borrow<str> for String;
9 - impl<T> Borrow<T> for T
11 note: required by a bound in `HashMap::<K, V, S>::get`
12 --> $SRC_DIR/std/src/collections/hash/map.rs:LL:COL
15 | ^^^^^^^^^ required by this bound in `HashMap::<K, V, S>::get`
16 help: consider specifying the type argument in the function call
18 LL | .get::<Q>(&"key".into())
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0283`.