error: no method named `print_hello` found for type `struct_here::MyStruct` in the current scope
--> prog.rs:26:14
|
26 | instance.print_hello(); // <- situation: I'm writing this line of code
| ^^^^^^^^^^^
|
= help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it:
= help: candidate #1: `use trait_here::MyTrait`
error: aborting due to previous error