]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84973.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / 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    |             ---------- ^ expected an implementor of trait `SomeTrait`
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`.