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