1 error[E0283]: type annotations needed
2 --> $DIR/issue-77982.rs:8:10
4 LL | opts.get(opt.as_ref());
5 | ^^^ ------------ this method call resolves to `&T`
7 | cannot infer type for type parameter `Q` declared on the associated function `get`
9 = note: cannot satisfy `String: Borrow<_>`
11 error[E0283]: type annotations needed
12 --> $DIR/issue-77982.rs:12:44
14 LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect();
15 | ^^^^^^^^^ ----------- this method call resolves to `T`
17 | cannot infer type for type parameter `T` declared on the trait `From`
19 = note: cannot satisfy `u32: From<_>`
20 = note: required by `from`
22 error[E0283]: type annotations needed for `Box<T>`
23 --> $DIR/issue-77982.rs:35:16
25 LL | let _ = ().foo();
26 | - ^^^ cannot infer type for type parameter `T` declared on the trait `Foo`
28 | consider giving this pattern the explicit type `Box<T>`, where the type parameter `T` is specified
30 = note: cannot satisfy `(): Foo<'_, _>`
32 error[E0283]: type annotations needed for `Box<T>`
33 --> $DIR/issue-77982.rs:39:19
35 LL | let _ = (&()).bar();
36 | - ^^^ cannot infer type for type parameter `T` declared on the trait `Bar`
38 | consider giving this pattern the explicit type `Box<T>`, where the type parameter `T` is specified
40 = note: cannot satisfy `&(): Bar<'_, _>`
42 error: aborting due to 4 previous errors
44 For more information about this error, try `rustc --explain E0283`.