2018-07-15 14:11:54 -07:00
|
|
|
error[E0277]: the trait bound `T: Bound` is not satisfied
|
2020-07-25 02:05:19 -04:00
|
|
|
--> $DIR/issue-21837.rs:8:20
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl<T> Trait2 for Foo<T> {}
|
2020-07-25 02:05:19 -04:00
|
|
|
| ^^^^^^ the trait `Bound` is not implemented for `T`
|
2019-12-26 13:43:33 +01:00
|
|
|
|
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `Foo`
|
|
|
|
--> $DIR/issue-21837.rs:2:19
|
|
|
|
|
|
|
|
|
LL | pub struct Foo<T: Bound>(T);
|
|
|
|
| ^^^^^ required by this bound in `Foo`
|
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 | impl<T: Bound> Trait2 for Foo<T> {}
|
2021-06-21 19:07:19 -07:00
|
|
|
| +++++++
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|