2018-11-01 18:17:58 +00:00
|
|
|
error[E0277]: the trait bound `T: Foo` is not satisfied
|
2020-01-29 16:55:37 -08:00
|
|
|
--> $DIR/trait-alias-wf.rs:5:14
|
2018-11-01 18:17:58 +00:00
|
|
|
|
|
2019-08-24 14:44:43 -07:00
|
|
|
LL | trait A<T: Foo> {}
|
2020-04-05 22:15:06 -07:00
|
|
|
| --- required by this bound in `A`
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | trait B<T> = A<T>;
|
2019-12-26 13:43:33 +01:00
|
|
|
| ^^^^ the trait `Foo` is not implemented for `T`
|
|
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
help: consider restricting type parameter `T`
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2020-03-13 19:28:14 -07:00
|
|
|
LL | trait B<T: Foo> = A<T>;
|
|
|
|
|
| ^^^^^
|
2018-11-01 18:17:58 +00:00
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|