2018-08-08 07:28:26 -05:00
|
|
|
error[E0277]: the trait bound `T: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:13:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | impl<T> Foo<T> {
|
2019-12-26 06:43:33 -06:00
|
|
|
| ^^^^^^ the trait `Trait` is not implemented for `T`
|
|
|
|
|
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `Foo`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:3:14
|
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Foo`
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider restricting type parameter `T`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2020-03-13 21:28:14 -05:00
|
|
|
LL | impl<T: Trait> Foo<T> {
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `isize: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:19:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | a: Foo<isize>,
|
2020-07-10 17:13:49 -05:00
|
|
|
| ^^^^^^^^^^ the trait `Trait` is not implemented for `isize`
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `Foo`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:3:14
|
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Foo`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `usize: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:23:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Quux(Bar<usize>),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `Bar`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:7:12
|
|
|
|
|
|
|
|
|
LL | enum Bar<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Bar`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `U: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:27:8
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b: Foo<U>,
|
2020-07-10 17:13:49 -05:00
|
|
|
| ^^^^^^ the trait `Trait` is not implemented for `U`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `Foo`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:3:14
|
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Foo`
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider restricting type parameter `U`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2020-03-13 21:28:14 -05:00
|
|
|
LL | struct Badness<U: Trait> {
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `V: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:31:21
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | EvenMoreBadness(Bar<V>),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^ the trait `Trait` is not implemented for `V`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `Bar`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:7:12
|
|
|
|
|
|
|
|
|
LL | enum Bar<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Bar`
|
2020-03-13 21:28:14 -05:00
|
|
|
help: consider restricting type parameter `V`
|
2019-12-26 06:43:33 -06:00
|
|
|
|
|
2020-03-13 21:28:14 -05:00
|
|
|
LL | enum MoreBadness<V: Trait> {
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++++
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `i32: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:35:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Foo<i32>,
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^ the trait `Trait` is not implemented for `i32`
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `Foo`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:3:14
|
|
|
|
|
|
|
|
|
LL | struct Foo<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Foo`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `u8: Trait` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/on-structs-and-enums.rs:39:29
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | DictionaryLike { field: Bar<u8> },
|
2020-07-10 17:13:49 -05:00
|
|
|
| ^^^^^^^ the trait `Trait` is not implemented for `u8`
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `Bar`
|
|
|
|
--> $DIR/on-structs-and-enums.rs:7:12
|
|
|
|
|
|
|
|
|
LL | enum Bar<T:Trait> {
|
|
|
|
| ^^^^^ required by this bound in `Bar`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|