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