]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `usize: Trait` is not satisfied |
74b04a01 | 2 | --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:7:15 |
b7449926 XL |
3 | | |
4 | LL | fn explode(x: Foo<usize>) {} | |
1b1a35ee | 5 | | ^^^^^^^^^^ the trait `Trait` is not implemented for `usize` |
ba9703b0 XL |
6 | | |
7 | ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:5:18 | |
b7449926 | 8 | | |
ba9703b0 | 9 | LL | pub struct Foo<T:Trait> { |
1b1a35ee | 10 | | ----- required by this bound in `Foo` |
b7449926 | 11 | |
1b1a35ee | 12 | error[E0277]: the trait bound `f32: Trait` is not satisfied |
74b04a01 | 13 | --> $DIR/trait-bounds-on-structs-and-enums-xc.rs:10:14 |
b7449926 XL |
14 | | |
15 | LL | fn kaboom(y: Bar<f32>) {} | |
1b1a35ee | 16 | | ^^^^^^^^ the trait `Trait` is not implemented for `f32` |
ba9703b0 XL |
17 | | |
18 | ::: $DIR/auxiliary/trait_bounds_on_structs_and_enums_xc.rs:9:16 | |
b7449926 | 19 | | |
ba9703b0 | 20 | LL | pub enum Bar<T:Trait> { |
1b1a35ee | 21 | | ----- required by this bound in `Bar` |
b7449926 XL |
22 | |
23 | error: aborting due to 2 previous errors | |
24 | ||
25 | For more information about this error, try `rustc --explain E0277`. |