1 error[E0277]: the trait bound `T: Trait` is not satisfied
2 --> $DIR/on-structs-and-enums.rs:13:9
5 | ^^^^^^ the trait `Trait` is not implemented for `T`
7 note: required by a bound in `Foo`
8 --> $DIR/on-structs-and-enums.rs:3:14
10 LL | struct Foo<T:Trait> {
11 | ^^^^^ required by this bound in `Foo`
12 help: consider restricting type parameter `T`
14 LL | impl<T: Trait> Foo<T> {
17 error[E0277]: the trait bound `isize: Trait` is not satisfied
18 --> $DIR/on-structs-and-enums.rs:19:8
21 | ^^^^^^^^^^ the trait `Trait` is not implemented for `isize`
23 note: required by a bound in `Foo`
24 --> $DIR/on-structs-and-enums.rs:3:14
26 LL | struct Foo<T:Trait> {
27 | ^^^^^ required by this bound in `Foo`
29 error[E0277]: the trait bound `usize: Trait` is not satisfied
30 --> $DIR/on-structs-and-enums.rs:23:10
32 LL | Quux(Bar<usize>),
33 | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize`
35 note: required by a bound in `Bar`
36 --> $DIR/on-structs-and-enums.rs:7:12
38 LL | enum Bar<T:Trait> {
39 | ^^^^^ required by this bound in `Bar`
41 error[E0277]: the trait bound `U: Trait` is not satisfied
42 --> $DIR/on-structs-and-enums.rs:27:8
45 | ^^^^^^ the trait `Trait` is not implemented for `U`
47 note: required by a bound in `Foo`
48 --> $DIR/on-structs-and-enums.rs:3:14
50 LL | struct Foo<T:Trait> {
51 | ^^^^^ required by this bound in `Foo`
52 help: consider restricting type parameter `U`
54 LL | struct Badness<U: Trait> {
57 error[E0277]: the trait bound `V: Trait` is not satisfied
58 --> $DIR/on-structs-and-enums.rs:31:21
60 LL | EvenMoreBadness(Bar<V>),
61 | ^^^^^^ the trait `Trait` is not implemented for `V`
63 note: required by a bound in `Bar`
64 --> $DIR/on-structs-and-enums.rs:7:12
66 LL | enum Bar<T:Trait> {
67 | ^^^^^ required by this bound in `Bar`
68 help: consider restricting type parameter `V`
70 LL | enum MoreBadness<V: Trait> {
73 error[E0277]: the trait bound `i32: Trait` is not satisfied
74 --> $DIR/on-structs-and-enums.rs:35:5
77 | ^^^^^^^^ the trait `Trait` is not implemented for `i32`
79 note: required by a bound in `Foo`
80 --> $DIR/on-structs-and-enums.rs:3:14
82 LL | struct Foo<T:Trait> {
83 | ^^^^^ required by this bound in `Foo`
85 error[E0277]: the trait bound `u8: Trait` is not satisfied
86 --> $DIR/on-structs-and-enums.rs:39:29
88 LL | DictionaryLike { field: Bar<u8> },
89 | ^^^^^^^ the trait `Trait` is not implemented for `u8`
91 note: required by a bound in `Bar`
92 --> $DIR/on-structs-and-enums.rs:7:12
94 LL | enum Bar<T:Trait> {
95 | ^^^^^ required by this bound in `Bar`
97 error: aborting due to 7 previous errors
99 For more information about this error, try `rustc --explain E0277`.