]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | error[E0599]: the function or associated item `make_g` exists for fn pointer `for<'r> fn(&'r ())`, but its trait bounds were not satisfied |
9fa01778 XL |
2 | --> $DIR/issue-57362-2.rs:22:25 |
3 | | | |
532ac7d7 | 4 | LL | let x = <fn (&())>::make_g(); |
5869c6ff | 5 | | ^^^^^^ function or associated item cannot be called on `for<'r> fn(&'r ())` due to unsatisfied trait bounds |
9fa01778 | 6 | | |
5869c6ff | 7 | = note: the following trait bounds were not satisfied: |
f035d41b | 8 | `for<'r> fn(&'r ()): X` |
9fa01778 | 9 | = help: items from traits can only be used if the trait is implemented and in scope |
74b04a01 XL |
10 | note: `X` defines an item `make_g`, perhaps you need to implement it |
11 | --> $DIR/issue-57362-2.rs:8:1 | |
12 | | | |
13 | LL | trait X { | |
14 | | ^^^^^^^ | |
9fa01778 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0599`. |