2024-03-10 19:43:20 -04:00
|
|
|
error[E0599]: no function or associated item named `make_g` found for fn pointer `for<'a> fn(&'a ())` in the current scope
|
2024-03-14 14:51:55 -04:00
|
|
|
--> $DIR/issue-57362-2.rs:23:25
|
2019-01-25 15:23:13 -05:00
|
|
|
|
|
2020-05-18 21:43:11 +00:00
|
|
|
LL | let x = <fn (&())>::make_g();
|
2024-03-10 19:43:20 -04:00
|
|
|
| ^^^^^^ function or associated item not found in `fn(&())`
|
2019-01-25 15:23:13 -05:00
|
|
|
|
|
2020-05-18 21:43:11 +00:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
|
|
|
note: `X` defines an item `make_g`, perhaps you need to implement it
|
|
|
|
--> $DIR/issue-57362-2.rs:8:1
|
2020-02-24 18:55:51 -08:00
|
|
|
|
|
2020-05-18 21:43:11 +00:00
|
|
|
LL | trait X {
|
|
|
|
| ^^^^^^^
|
2019-01-25 15:23:13 -05:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-25 15:23:13 -05:00
|
|
|
|
2020-05-18 21:43:11 +00:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|