]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `T: Trait` is not satisfied |
0731742a | 2 | --> $DIR/trait-bounds-on-structs-and-enums.rs:13:9 |
b7449926 | 3 | | |
e1599b0c | 4 | LL | struct Foo<T:Trait> { |
ba9703b0 | 5 | | ----- required by this bound in `Foo` |
e1599b0c | 6 | ... |
b7449926 | 7 | LL | impl<T> Foo<T> { |
74b04a01 XL |
8 | | ^^^^^^ the trait `Trait` is not implemented for `T` |
9 | | | |
ba9703b0 | 10 | help: consider restricting type parameter `T` |
74b04a01 | 11 | | |
ba9703b0 XL |
12 | LL | impl<T: Trait> Foo<T> { |
13 | | ^^^^^^^ | |
b7449926 XL |
14 | |
15 | error[E0277]: the trait bound `isize: Trait` is not satisfied | |
3dfed10e | 16 | --> $DIR/trait-bounds-on-structs-and-enums.rs:19:8 |
b7449926 | 17 | | |
e1599b0c | 18 | LL | struct Foo<T:Trait> { |
ba9703b0 | 19 | | ----- required by this bound in `Foo` |
e1599b0c | 20 | ... |
532ac7d7 | 21 | LL | a: Foo<isize>, |
3dfed10e | 22 | | ^^^^^^^^^^ the trait `Trait` is not implemented for `isize` |
b7449926 XL |
23 | |
24 | error[E0277]: the trait bound `usize: Trait` is not satisfied | |
0731742a | 25 | --> $DIR/trait-bounds-on-structs-and-enums.rs:23:10 |
b7449926 | 26 | | |
e1599b0c | 27 | LL | enum Bar<T:Trait> { |
ba9703b0 | 28 | | ----- required by this bound in `Bar` |
e1599b0c | 29 | ... |
532ac7d7 | 30 | LL | Quux(Bar<usize>), |
b7449926 | 31 | | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize` |
b7449926 XL |
32 | |
33 | error[E0277]: the trait bound `U: Trait` is not satisfied | |
3dfed10e | 34 | --> $DIR/trait-bounds-on-structs-and-enums.rs:27:8 |
b7449926 | 35 | | |
e1599b0c | 36 | LL | struct Foo<T:Trait> { |
ba9703b0 | 37 | | ----- required by this bound in `Foo` |
e1599b0c | 38 | ... |
532ac7d7 | 39 | LL | b: Foo<U>, |
3dfed10e | 40 | | ^^^^^^ the trait `Trait` is not implemented for `U` |
74b04a01 | 41 | | |
ba9703b0 | 42 | help: consider restricting type parameter `U` |
74b04a01 | 43 | | |
ba9703b0 XL |
44 | LL | struct Badness<U: Trait> { |
45 | | ^^^^^^^ | |
b7449926 XL |
46 | |
47 | error[E0277]: the trait bound `V: Trait` is not satisfied | |
0731742a | 48 | --> $DIR/trait-bounds-on-structs-and-enums.rs:31:21 |
b7449926 | 49 | | |
e1599b0c | 50 | LL | enum Bar<T:Trait> { |
ba9703b0 | 51 | | ----- required by this bound in `Bar` |
e1599b0c | 52 | ... |
532ac7d7 | 53 | LL | EvenMoreBadness(Bar<V>), |
b7449926 | 54 | | ^^^^^^ the trait `Trait` is not implemented for `V` |
74b04a01 | 55 | | |
ba9703b0 | 56 | help: consider restricting type parameter `V` |
74b04a01 | 57 | | |
ba9703b0 XL |
58 | LL | enum MoreBadness<V: Trait> { |
59 | | ^^^^^^^ | |
b7449926 XL |
60 | |
61 | error[E0277]: the trait bound `i32: Trait` is not satisfied | |
0731742a | 62 | --> $DIR/trait-bounds-on-structs-and-enums.rs:35:5 |
b7449926 | 63 | | |
e1599b0c | 64 | LL | struct Foo<T:Trait> { |
ba9703b0 | 65 | | ----- required by this bound in `Foo` |
e1599b0c | 66 | ... |
532ac7d7 | 67 | LL | Foo<i32>, |
b7449926 | 68 | | ^^^^^^^^ the trait `Trait` is not implemented for `i32` |
b7449926 XL |
69 | |
70 | error[E0277]: the trait bound `u8: Trait` is not satisfied | |
3dfed10e | 71 | --> $DIR/trait-bounds-on-structs-and-enums.rs:39:29 |
b7449926 | 72 | | |
e1599b0c | 73 | LL | enum Bar<T:Trait> { |
ba9703b0 | 74 | | ----- required by this bound in `Bar` |
e1599b0c | 75 | ... |
532ac7d7 | 76 | LL | DictionaryLike { field: Bar<u8> }, |
3dfed10e | 77 | | ^^^^^^^ the trait `Trait` is not implemented for `u8` |
b7449926 XL |
78 | |
79 | error: aborting due to 7 previous errors | |
80 | ||
81 | For more information about this error, try `rustc --explain E0277`. |