]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-57362-2.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-57362-2.stderr
CommitLineData
5869c6ff 1error[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 4LL | 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
10note: `X` defines an item `make_g`, perhaps you need to implement it
11 --> $DIR/issue-57362-2.rs:8:1
12 |
13LL | trait X {
14 | ^^^^^^^
9fa01778
XL
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0599`.