]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the trait bound `usize: Trait` is not satisfied |
0731742a | 2 | --> $DIR/trait-bounds-on-structs-and-enums-static.rs:9:11 |
b7449926 | 3 | | |
e1599b0c | 4 | LL | struct Foo<T:Trait> { |
ba9703b0 | 5 | | ----- required by this bound in `Foo` |
e1599b0c | 6 | ... |
0bf4aa26 XL |
7 | LL | static X: Foo<usize> = Foo { |
8 | | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize` | |
b7449926 XL |
9 | |
10 | error: aborting due to previous error | |
11 | ||
12 | For more information about this error, try `rustc --explain E0277`. |