1 error[E0277]: the trait bound `Foo: Yay` is not satisfied
2 --> $DIR/impl_trait_for_tait_bound2.rs:11:14
5 | ^^^ the trait `Yay` is not implemented for `Foo`
7 = help: the trait `Yay` is implemented for `u32`
8 note: required by a bound in `is_yay`
9 --> $DIR/impl_trait_for_tait_bound2.rs:14:14
11 LL | fn is_yay<T: Yay>() { }
12 | ^^^ required by this bound in `is_yay`
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.