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