1 error[E0277]: the trait bound `u32: Trait` is not satisfied
2 --> $DIR/on-structs-and-enums-in-fns.rs:13:15
4 LL | fn explode(x: Foo<u32>) {}
5 | ^^^^^^^^ the trait `Trait` is not implemented for `u32`
7 note: required by a bound in `Foo`
8 --> $DIR/on-structs-and-enums-in-fns.rs:3:14
10 LL | struct Foo<T:Trait> {
11 | ^^^^^ required by this bound in `Foo`
13 error[E0277]: the trait bound `f32: Trait` is not satisfied
14 --> $DIR/on-structs-and-enums-in-fns.rs:16:14
16 LL | fn kaboom(y: Bar<f32>) {}
17 | ^^^^^^^^ the trait `Trait` is not implemented for `f32`
19 note: required by a bound in `Bar`
20 --> $DIR/on-structs-and-enums-in-fns.rs:7:12
22 LL | enum Bar<T:Trait> {
23 | ^^^^^ required by this bound in `Bar`
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0277`.