1
1
error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::T == ()`
2
- --> $DIR/coherence-constrained.rs:18 :5
2
+ --> $DIR/coherence-constrained.rs:17 :5
3
3
|
4
4
LL | async fn foo(&self) {}
5
5
| ^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Bar as Foo>::T == ()`
6
6
7
7
error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::T == ()`
8
- --> $DIR/coherence-constrained.rs:29 :5
8
+ --> $DIR/coherence-constrained.rs:27 :5
9
9
|
10
10
LL | async fn foo(&self) {}
11
11
| ^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Bar as Foo>::T == ()`
12
12
13
13
error[E0119]: conflicting implementations of trait `Foo` for type `Bar`
14
- --> $DIR/coherence-constrained.rs:23 :1
14
+ --> $DIR/coherence-constrained.rs:22 :1
15
15
|
16
16
LL | impl Foo for Bar {
17
17
| ---------------- first implementation here
18
18
...
19
19
LL | impl Foo for Bar {
20
20
| ^^^^^^^^^^^^^^^^ conflicting implementation for `Bar`
21
21
22
- error[E0283]: type annotations needed: cannot satisfy `Bar: Foo`
23
- --> $DIR/coherence-constrained.rs:13:14
24
- |
25
- LL | impl Foo for Bar {
26
- | ^^^
27
- |
28
- note: multiple `impl`s satisfying `Bar: Foo` found
29
- --> $DIR/coherence-constrained.rs:13:1
30
- |
31
- LL | impl Foo for Bar {
32
- | ^^^^^^^^^^^^^^^^
33
- ...
34
- LL | impl Foo for Bar {
35
- | ^^^^^^^^^^^^^^^^
36
-
37
22
error[E0284]: type annotations needed
38
- --> $DIR/coherence-constrained.rs:15 :14
23
+ --> $DIR/coherence-constrained.rs:14 :14
39
24
|
40
25
LL | type T = ();
41
26
| ^^ cannot infer type
42
27
|
43
28
= note: cannot satisfy `<Bar as Foo>::T == _`
44
29
45
30
error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>`
46
- --> $DIR/coherence-constrained.rs:18 :5
31
+ --> $DIR/coherence-constrained.rs:17 :5
47
32
|
48
33
LL | async fn foo(&self) {}
49
34
| ^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>`
@@ -56,31 +41,16 @@ LL | async fn foo(&self) -> Self::T;
56
41
|
57
42
= note: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == _`
58
43
59
- error[E0283]: type annotations needed: cannot satisfy `Bar: Foo`
60
- --> $DIR/coherence-constrained.rs:23:14
61
- |
62
- LL | impl Foo for Bar {
63
- | ^^^
64
- |
65
- note: multiple `impl`s satisfying `Bar: Foo` found
66
- --> $DIR/coherence-constrained.rs:13:1
67
- |
68
- LL | impl Foo for Bar {
69
- | ^^^^^^^^^^^^^^^^
70
- ...
71
- LL | impl Foo for Bar {
72
- | ^^^^^^^^^^^^^^^^
73
-
74
44
error[E0284]: type annotations needed
75
- --> $DIR/coherence-constrained.rs:26 :14
45
+ --> $DIR/coherence-constrained.rs:24 :14
76
46
|
77
47
LL | type T = ();
78
48
| ^^ cannot infer type
79
49
|
80
50
= note: cannot satisfy `<Bar as Foo>::T == _`
81
51
82
52
error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>`
83
- --> $DIR/coherence-constrained.rs:29 :5
53
+ --> $DIR/coherence-constrained.rs:27 :5
84
54
|
85
55
LL | async fn foo(&self) {}
86
56
| ^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>`
@@ -94,7 +64,7 @@ LL | async fn foo(&self) -> Self::T;
94
64
= note: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == _`
95
65
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
96
66
97
- error: aborting due to 11 previous errors
67
+ error: aborting due to 9 previous errors
98
68
99
- Some errors have detailed explanations: E0119, E0283, E0284.
69
+ Some errors have detailed explanations: E0119, E0284.
100
70
For more information about an error, try `rustc --explain E0119`.
0 commit comments