1
- error[E0277]: the trait bound `A<X>: Trait<i32, u8, u8 >` is not satisfied
1
+ error[E0277]: the trait bound `A<X>: Trait<_, _, _ >` is not satisfied
2
2
--> $DIR/incompleteness-unstable-result.rs:63:19
3
3
|
4
4
LL | impls_trait::<A<X>, _, _, _>();
5
- | ^^^^ the trait `Trait<i32, u8, u8 >` is not implemented for `A<X>`, which is required by `A<X>: Trait<_, _, _>`
5
+ | ^^^^ the trait `Trait<_, _, _ >` is not implemented for `A<X>`, which is required by `A<X>: Trait<_, _, _>`
6
6
|
7
- note: required for `A<X>` to implement `Trait<i32, u8, u8>`
7
+ = help: the trait `Trait<U, V, D>` is implemented for `A<T>`
8
+ note: required for `A<X>` to implement `Trait<_, _, _>`
8
9
--> $DIR/incompleteness-unstable-result.rs:32:50
9
10
|
10
11
LL | impl<T: ?Sized, U: ?Sized, V: ?Sized, D: ?Sized> Trait<U, V, D> for A<T>
@@ -13,16 +14,12 @@ LL | impl<T: ?Sized, U: ?Sized, V: ?Sized, D: ?Sized> Trait<U, V, D> for A<T>
13
14
LL | A<T>: Trait<U, D, V>,
14
15
| -------------- unsatisfied trait bound introduced here
15
16
= note: 8 redundant requirements hidden
16
- = note: required for `A<X>` to implement `Trait<i32, u8, u8 >`
17
+ = note: required for `A<X>` to implement `Trait<_, _, _ >`
17
18
note: required by a bound in `impls_trait`
18
19
--> $DIR/incompleteness-unstable-result.rs:51:28
19
20
|
20
21
LL | fn impls_trait<T: ?Sized + Trait<U, V, D>, U: ?Sized, V: ?Sized, D: ?Sized>() {}
21
22
| ^^^^^^^^^^^^^^ required by this bound in `impls_trait`
22
- help: consider extending the `where` clause, but there might be an alternative better way to express this requirement
23
- |
24
- LL | X: IncompleteGuidance<u32, i16>, A<X>: Trait<i32, u8, u8>
25
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~
26
23
27
24
error: aborting due to 1 previous error
28
25
0 commit comments