@@ -32,6 +32,7 @@ error[E0277]: the trait bound `Bug: Foo` is not satisfied
32
32
|
33
33
LL | / fn get_service(
34
34
LL | |
35
+ LL | |
35
36
LL | | &self,
36
37
LL | | ) -> Self::AssocType;
37
38
| |_________________________^ the trait `Foo` is not implemented for `Bug`
@@ -41,8 +42,18 @@ help: consider further restricting type parameter `Bug` with trait `Foo`
41
42
LL | pub trait ThriftService<Bug: NotFoo + Foo>:
42
43
| +++++
43
44
45
+ error[E0277]: the trait bound `Bug: Foo` is not satisfied
46
+ --> $DIR/issue-59324.rs:16:5
47
+ |
48
+ LL | / fn get_service(
49
+ LL | |
50
+ LL | |
51
+ LL | | &self,
52
+ LL | | ) -> Self::AssocType;
53
+ | |_________________________^ the trait `Foo` is not implemented for `Bug`
54
+
44
55
error[E0277]: the trait bound `(): Foo` is not satisfied
45
- --> $DIR/issue-59324.rs:23 :29
56
+ --> $DIR/issue-59324.rs:24 :29
46
57
|
47
58
LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
48
59
| ^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
@@ -54,7 +65,7 @@ LL | pub trait Foo: NotFoo {
54
65
| ^^^^^^^^^^^^^^^^^^^^^
55
66
56
67
error[E0277]: the trait bound `Bug: Foo` is not satisfied
57
- --> $DIR/issue-59324.rs:19 :10
68
+ --> $DIR/issue-59324.rs:20 :10
58
69
|
59
70
LL | ) -> Self::AssocType;
60
71
| ^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `Bug`
@@ -65,7 +76,7 @@ LL | pub trait ThriftService<Bug: NotFoo + Foo>:
65
76
| +++++
66
77
67
78
error[E0277]: the trait bound `(): Foo` is not satisfied
68
- --> $DIR/issue-59324.rs:23 :29
79
+ --> $DIR/issue-59324.rs:24 :29
69
80
|
70
81
LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
71
82
| ^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `()`
@@ -78,7 +89,7 @@ LL | pub trait Foo: NotFoo {
78
89
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
79
90
80
91
error[E0277]: the size for values of type `(dyn ThriftService<(), AssocType = _> + 'static)` cannot be known at compilation time
81
- --> $DIR/issue-59324.rs:23 :29
92
+ --> $DIR/issue-59324.rs:24 :29
82
93
|
83
94
LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
84
95
| ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -95,6 +106,6 @@ help: function arguments must have a statically known size, borrowed types alway
95
106
LL | fn with_factory<H>(factory: &dyn ThriftService<()>) {}
96
107
| +
97
108
98
- error: aborting due to 7 previous errors
109
+ error: aborting due to 8 previous errors
99
110
100
111
For more information about this error, try `rustc --explain E0277`.
0 commit comments