]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-84973.stderr
Rollup merge of #106751 - clubby789:const-intrinsic, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / issue-84973.stderr
1 error[E0277]: the trait bound `Fancy: SomeTrait` is not satisfied
2   --> $DIR/issue-84973.rs:6:24
3    |
4 LL |     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    |
9 note: required by a bound in `Other::<'a, G>::new`
10   --> $DIR/issue-84973.rs:25:8
11    |
12 LL |     G: SomeTrait,
13    |        ^^^^^^^^^ required by this bound in `Other::<'a, G>::new`
14 LL | {
15 LL |     pub fn new(g: G) -> Self {
16    |            --- required by a bound in this
17 help: consider borrowing here
18    |
19 LL |     let o = Other::new(&f);
20    |                        +
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.