]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/suggest-deferences/multiple-1.stderr
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / traits / suggest-deferences / multiple-1.stderr
1 error[E0277]: the trait bound `&mut Baz: Happy` is not satisfied
2   --> $DIR/multiple-1.rs:52:9
3    |
4 LL | fn foo<T>(_: T) where T: Happy {}
5    |                          ----- required by this bound in `foo`
6 ...
7 LL |     foo(&mut baz);
8    |         ^^^^^^^^ the trait `Happy` is not implemented for `&mut Baz`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0277`.