2020-09-02 02:40:56 -05:00
|
|
|
error[E0599]: no method named `the_fn` found for reference `&TheStruct` in the current scope
|
2019-10-26 10:28:02 -05:00
|
|
|
--> $DIR/coherence_inherent_cc.rs:23:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-12-28 19:13:06 -06:00
|
|
|
LL | s.the_fn();
|
2020-09-02 02:40:56 -05:00
|
|
|
| ^^^^^^ method not found in `&TheStruct`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2021-08-26 13:17:19 -05:00
|
|
|
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + use coherence_inherent_cc_lib::TheTrait;
|
2021-08-26 13:17:19 -05:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|