1 2 3 4 5 6 7 8 9 10 11
// See coherence_inherent_cc.rs pub trait TheTrait { fn the_fn(&self); } pub struct TheStruct; impl TheTrait for TheStruct { fn the_fn(&self) {} }