1 2 3 4 5 6 7 8 9
pub trait A { fn frob(&self); } impl A for isize { fn frob(&self) {} } pub fn frob<T:A>(t: T) { t.frob(); }