2 Compiling traits-example v0.1.0 (file:///projects/traits-example)
3 error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
6 2 | fn baby_name() -> String;
7 | ------------------------- `Animal::baby_name` defined here
9 20 | println!("A baby dog is called a {}", Animal::baby_name());
10 | ^^^^^^^^^^^^^^^^^ cannot call associated function of trait
12 help: use the fully-qualified path to the only available implementation
14 20 | println!("A baby dog is called a {}", <::Dog as Animal>::baby_name());
17 For more information about this error, try `rustc --explain E0790`.
18 error: could not compile `traits-example` due to previous error