2020-06-20 07:00:36 -05:00
|
|
|
error[E0277]: the trait bound `&mut Baz: Happy` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/multiple-1.rs:52:9
|
2020-06-20 07:00:36 -05:00
|
|
|
|
|
|
|
|
LL | foo(&mut baz);
|
2021-09-07 06:30:53 -05:00
|
|
|
| --- ^^^^^^^^ the trait `Happy` is not implemented for `&mut Baz`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
2021-12-13 14:56:40 -06:00
|
|
|
= help: the trait `Happy` is implemented for `&mut LDM`
|
2021-07-31 11:26:55 -05:00
|
|
|
note: required by a bound in `foo`
|
|
|
|
--> $DIR/multiple-1.rs:45:26
|
|
|
|
|
|
|
|
|
LL | fn foo<T>(_: T) where T: Happy {}
|
|
|
|
| ^^^^^ required by this bound in `foo`
|
2020-06-20 07:00:36 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|