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