Files
rust/src/test/ui/traits/trait-alias/trait-alias-wf.stderr

17 lines
472 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `T: Foo` is not satisfied
--> $DIR/trait-alias-wf.rs:5:14
|
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>;
| ^^^^ the trait `Foo` is not implemented for `T`
|
help: consider restricting type parameter `T`
|
LL | trait B<T: Foo> = A<T>;
| ^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.