fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0277]: the trait bound `u32: Trait` is not satisfied 2 --> $DIR/trait-bounds-on-structs-and-enums-in-fns.rs:13:15 3 | 4LL | struct Foo<T:Trait> { 5 | ----- required by this bound in `Foo` 6... 7LL | fn explode(x: Foo<u32>) {} 8 | ^^^^^^^^ the trait `Trait` is not implemented for `u32` 9 10error[E0277]: the trait bound `f32: Trait` is not satisfied 11 --> $DIR/trait-bounds-on-structs-and-enums-in-fns.rs:16:14 12 | 13LL | enum Bar<T:Trait> { 14 | ----- required by this bound in `Bar` 15... 16LL | fn kaboom(y: Bar<f32>) {} 17 | ^^^^^^^^ the trait `Trait` is not implemented for `f32` 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0277`.