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