2020-01-08 08:05:31 -08:00
|
|
|
error[E0599]: no method named `f` found for fn pointer `fn(&u8)` in the current scope
|
2019-01-25 15:23:13 -05:00
|
|
|
--> $DIR/issue-57362-1.rs:20:7
|
2019-01-25 19:35:35 +01:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | a.f();
|
2022-08-27 20:59:07 +00:00
|
|
|
| ^ method not found in `fn(&u8)`
|
2019-01-25 19:35:35 +01:00
|
|
|
|
|
2019-02-20 12:52:23 -05:00
|
|
|
= help: items from traits can only be used if the trait is implemented and in scope
|
2020-02-24 18:55:51 -08:00
|
|
|
note: `Trait` defines an item `f`, perhaps you need to implement it
|
|
|
|
--> $DIR/issue-57362-1.rs:8:1
|
|
|
|
|
|
|
|
|
LL | trait Trait {
|
|
|
|
| ^^^^^^^^^^^
|
2019-01-25 19:35:35 +01:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-25 19:35:35 +01:00
|
|
|
|
2019-02-20 12:52:23 -05:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|