|
1 | 1 | error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::T == ()` |
2 | | - --> $DIR/coherence-constrained.rs:14:5 |
| 2 | + --> $DIR/coherence-constrained.rs:18: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:22:5 |
| 8 | + --> $DIR/coherence-constrained.rs:29: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:18:1 |
| 14 | + --> $DIR/coherence-constrained.rs:23: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: aborting due to 3 previous errors |
| 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 | +error[E0284]: type annotations needed |
| 38 | + --> $DIR/coherence-constrained.rs:15:14 |
| 39 | + | |
| 40 | +LL | type T = (); |
| 41 | + | ^^ cannot infer type |
| 42 | + | |
| 43 | + = note: cannot satisfy `<Bar as Foo>::T == _` |
| 44 | + |
| 45 | +error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>` |
| 46 | + --> $DIR/coherence-constrained.rs:18:5 |
| 47 | + | |
| 48 | +LL | async fn foo(&self) {} |
| 49 | + | ^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>` |
| 50 | + |
| 51 | +error[E0284]: type annotations needed |
| 52 | + --> $DIR/coherence-constrained.rs:6:5 |
| 53 | + | |
| 54 | +LL | async fn foo(&self) -> Self::T; |
| 55 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type |
| 56 | + | |
| 57 | + = note: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == _` |
| 58 | + |
| 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 | +error[E0284]: type annotations needed |
| 75 | + --> $DIR/coherence-constrained.rs:26:14 |
| 76 | + | |
| 77 | +LL | type T = (); |
| 78 | + | ^^ cannot infer type |
| 79 | + | |
| 80 | + = note: cannot satisfy `<Bar as Foo>::T == _` |
| 81 | + |
| 82 | +error[E0284]: type annotations needed: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>` |
| 83 | + --> $DIR/coherence-constrained.rs:29:5 |
| 84 | + | |
| 85 | +LL | async fn foo(&self) {} |
| 86 | + | ^^^^^^^^^^^^^^^^^^^ cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == impl Future<Output = ()>` |
| 87 | + |
| 88 | +error[E0284]: type annotations needed |
| 89 | + --> $DIR/coherence-constrained.rs:6:5 |
| 90 | + | |
| 91 | +LL | async fn foo(&self) -> Self::T; |
| 92 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type |
| 93 | + | |
| 94 | + = note: cannot satisfy `<Bar as Foo>::{opaque#0}<'_> == _` |
| 95 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 96 | + |
| 97 | +error: aborting due to 11 previous errors |
23 | 98 |
|
24 | | -Some errors have detailed explanations: E0119, E0284. |
| 99 | +Some errors have detailed explanations: E0119, E0283, E0284. |
25 | 100 | For more information about an error, try `rustc --explain E0119`. |
0 commit comments