@@ -26,7 +26,9 @@ error[E0283]: type annotations needed
26
26
--> $DIR/issue-77982.rs:8:10
27
27
|
28
28
LL | opts.get(opt.as_ref());
29
- | ^^^ cannot infer type of the type parameter `Q` declared on the associated function `get`
29
+ | ^^^ ------ type must be known at this point
30
+ | |
31
+ | cannot infer type of the type parameter `Q` declared on the associated function `get`
30
32
|
31
33
= note: multiple `impl`s satisfying `String: AsRef<_>` found in the following crates: `alloc`, `std`:
32
34
- impl AsRef<OsStr> for String;
@@ -42,7 +44,9 @@ error[E0283]: type annotations needed
42
44
--> $DIR/issue-77982.rs:13:59
43
45
|
44
46
LL | let ips: Vec<_> = (0..100_000).map(|_| u32::from(0u32.into())).collect();
45
- | ^^^^
47
+ | --------- ^^^^
48
+ | |
49
+ | type must be known at this point
46
50
|
47
51
= note: multiple `impl`s satisfying `u32: From<_>` found in the following crates: `core`, `std`:
48
52
- impl From<Ipv4Addr> for u32;
@@ -59,7 +63,7 @@ error[E0283]: type annotations needed for `Box<T>`
59
63
--> $DIR/issue-77982.rs:36:9
60
64
|
61
65
LL | let _ = ().foo();
62
- | ^
66
+ | ^ --- type must be known at this point
63
67
|
64
68
note: multiple `impl`s satisfying `(): Foo<'_, _>` found
65
69
--> $DIR/issue-77982.rs:29:1
@@ -77,7 +81,7 @@ error[E0283]: type annotations needed for `Box<T>`
77
81
--> $DIR/issue-77982.rs:40:9
78
82
|
79
83
LL | let _ = (&()).bar();
80
- | ^
84
+ | ^ --- type must be known at this point
81
85
|
82
86
note: multiple `impl`s satisfying `&(): Bar<'_, _>` found
83
87
--> $DIR/issue-77982.rs:32:1
0 commit comments