]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-57362-2.stderr
Rollup merge of #92942 - Xaeroxe:raw_arg, r=dtolnay
[rust.git] / src / test / ui / issues / issue-57362-2.stderr
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
2   --> $DIR/issue-57362-2.rs:22:25
3    |
4 LL |     let x = <fn (&())>::make_g();
5    |                         ^^^^^^ function or associated item cannot be called on `for<'r> fn(&'r ())` due to unsatisfied trait bounds
6    |
7    = note: the following trait bounds were not satisfied:
8            `for<'r> fn(&'r ()): X`
9    = help: items from traits can only be used if the trait is implemented and in scope
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    | ^^^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0599`.