pub trait A { fn frob(&self); } impl A for isize { fn frob(&self) {} } pub fn frob(t: T) { t.frob(); }