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