1 error[E0277]: the trait bound `Fancy: SomeTrait` is not satisfied
2 --> $DIR/issue-84973.rs:6:24
4 LL | let o = Other::new(f);
5 | ---------- ^ the trait `SomeTrait` is not implemented for `Fancy`
7 | required by a bound introduced by this call
9 note: required by a bound in `Other::<'a, G>::new`
10 --> $DIR/issue-84973.rs:25:8
13 | ^^^^^^^^^ required by this bound in `Other::<'a, G>::new`
15 LL | pub fn new(g: G) -> Self {
16 | --- required by a bound in this
17 help: consider borrowing here
19 LL | let o = Other::new(&f);
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0277`.