Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRusttraits basics and implSingle-choice MCQ

What must you provide to make this code compile?

trait Greet { fn hello(&self) -> String; } struct Dog; fn main() { let d = Dog; println!("{}", d.hello()); }