]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/impl_trait_for_tait_bound2.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / type-alias-impl-trait / impl_trait_for_tait_bound2.stderr
1 error[E0277]: the trait bound `Foo: Yay` is not satisfied
2   --> $DIR/impl_trait_for_tait_bound2.rs:11:14
3    |
4 LL |     is_yay::<Foo>();
5    |              ^^^ the trait `Yay` is not implemented for `Foo`
6    |
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
10    |
11 LL | fn is_yay<T: Yay>() { }
12    |              ^^^ required by this bound in `is_yay`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.