| 5 | */ |
| 6 | fn main() { |
| 7 | trait HasSquareRoot { // trait declaration |
| 8 | fn sq_root(self) -> Self; |
| 9 | } |
| 10 | impl HasSquareRoot for f32 { // an implementation of the trait |
| 11 | fn sq_root(self) -> Self { self.sqrt() } |
| 12 | } |
nothing calls this directly
no outgoing calls
no test coverage detected