rust/src/test/ui/suggestions/issue-84973.stderr
2021-09-27 00:30:39 +09:00

22 lines
646 B
Plaintext

error[E0277]: the trait bound `Fancy: SomeTrait` is not satisfied
--> $DIR/issue-84973.rs:6:24
|
LL | let o = Other::new(f);
| ---------- ^ expected an implementor of trait `SomeTrait`
| |
| required by a bound introduced by this call
|
note: required by `Other::<'a, G>::new`
--> $DIR/issue-84973.rs:27:5
|
LL | pub fn new(g: G) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^
help: consider borrowing here
|
LL | let o = Other::new(&f);
| +
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.