2020-06-20 05:30:12 -05:00
|
|
|
error[E0277]: the trait bound `&Baz: Happy` is not satisfied
|
2021-02-08 16:15:45 -06:00
|
|
|
--> $DIR/multiple-0.rs:34:9
|
2020-06-20 05:30:12 -05:00
|
|
|
|
|
|
|
|
LL | foo(&baz);
|
2022-08-20 01:54:39 -05:00
|
|
|
| --- ^^^^ the trait `Happy` is not implemented for `&Baz`
|
|
|
|
| |
|
2021-09-07 06:30:53 -05:00
|
|
|
| required by a bound introduced by this call
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
|
|
|
note: required by a bound in `foo`
|
|
|
|
--> $DIR/multiple-0.rs:30:26
|
|
|
|
|
|
|
|
|
LL | fn foo<T>(_: T) where T: Happy {}
|
|
|
|
| ^^^^^ required by this bound in `foo`
|
2022-08-20 01:54:39 -05:00
|
|
|
help: consider dereferencing here
|
|
|
|
|
|
|
|
|
LL | foo(&***baz);
|
|
|
|
| +++
|
2020-06-20 05:30:12 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2020-06-20 05:30:12 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|