1 pub trait ToPrimitive {
2 fn to_int(&self) -> isize { 0 }
5 impl ToPrimitive for i32 {}
6 impl ToPrimitive for isize {}
9 fn to_int(&self) -> isize;
10 fn add_dynamic(&self, other: &Add) -> isize;
14 fn to_int(&self) -> isize { *self }
15 fn add_dynamic(&self, other: &Add) -> isize {
16 self.to_int() + other.to_int() //~ ERROR multiple applicable items in scope