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

17 lines
489 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `T: Foo` is not satisfied
2018-12-25 08:56:47 -07:00
--> $DIR/trait-alias-wf.rs:5:1
|
2018-11-27 10:56:36 +01:00
LL | trait B<T> = A<T>; //~ ERROR `T: Foo` is not satisfied
| ^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `T`
|
= help: consider adding a `where T: Foo` bound
note: required by `A`
2018-12-25 08:56:47 -07:00
--> $DIR/trait-alias-wf.rs:4:1
|
LL | trait A<T: Foo> {}
| ^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.