error: no method named `pow` found for type `&mut Foo` in the current scope
--> prog.rs:24:22
|
24 | println!("{}", x.pow()); // no method named `pow` found for type `&mut Foo` in the current scope
| ^^^
|
= help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `pow`, perhaps you need to implement it:
= help: candidate #1: `FooPow`
error: aborting due to previous error