1 error[E0277]: the trait bound `T: Trait` is not satisfied
2 --> $DIR/trait-bounds-on-structs-and-enums.rs:13:9
4 LL | struct Foo<T:Trait> {
5 | ----- required by this bound in `Foo`
8 | ^^^^^^ the trait `Trait` is not implemented for `T`
10 help: consider restricting type parameter `T`
12 LL | impl<T: Trait> Foo<T> {
15 error[E0277]: the trait bound `isize: Trait` is not satisfied
16 --> $DIR/trait-bounds-on-structs-and-enums.rs:19:8
18 LL | struct Foo<T:Trait> {
19 | ----- required by this bound in `Foo`
22 | ^^^^^^^^^^ the trait `Trait` is not implemented for `isize`
24 error[E0277]: the trait bound `usize: Trait` is not satisfied
25 --> $DIR/trait-bounds-on-structs-and-enums.rs:23:10
27 LL | enum Bar<T:Trait> {
28 | ----- required by this bound in `Bar`
30 LL | Quux(Bar<usize>),
31 | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
33 error[E0277]: the trait bound `U: Trait` is not satisfied
34 --> $DIR/trait-bounds-on-structs-and-enums.rs:27:8
36 LL | struct Foo<T:Trait> {
37 | ----- required by this bound in `Foo`
40 | ^^^^^^ the trait `Trait` is not implemented for `U`
42 help: consider restricting type parameter `U`
44 LL | struct Badness<U: Trait> {
47 error[E0277]: the trait bound `V: Trait` is not satisfied
48 --> $DIR/trait-bounds-on-structs-and-enums.rs:31:21
50 LL | enum Bar<T:Trait> {
51 | ----- required by this bound in `Bar`
53 LL | EvenMoreBadness(Bar<V>),
54 | ^^^^^^ the trait `Trait` is not implemented for `V`
56 help: consider restricting type parameter `V`
58 LL | enum MoreBadness<V: Trait> {
61 error[E0277]: the trait bound `i32: Trait` is not satisfied
62 --> $DIR/trait-bounds-on-structs-and-enums.rs:35:5
64 LL | struct Foo<T:Trait> {
65 | ----- required by this bound in `Foo`
68 | ^^^^^^^^ the trait `Trait` is not implemented for `i32`
70 error[E0277]: the trait bound `u8: Trait` is not satisfied
71 --> $DIR/trait-bounds-on-structs-and-enums.rs:39:29
73 LL | enum Bar<T:Trait> {
74 | ----- required by this bound in `Bar`
76 LL | DictionaryLike { field: Bar<u8> },
77 | ^^^^^^^ the trait `Trait` is not implemented for `u8`
79 error: aborting due to 7 previous errors
81 For more information about this error, try `rustc --explain E0277`.