]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84973.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[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    |                        ^
6    |                        |
7    |                        expected an implementor of trait `SomeTrait`
8    |                        help: consider borrowing here: `&f`
9    |
10 note: required by `Other::<'a, G>::new`
11   --> $DIR/issue-84973.rs:27:5
12    |
13 LL |     pub fn new(g: G) -> Self {
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.