1 2 3 4 5 6 7 8 9 10 11 12 13 14
pub trait Clone2 { fn clone(&self) -> Self; } trait Getter<T: Clone2> { fn get(&self) -> T; } impl Getter<isize> for isize { //~ ERROR `isize: Clone2` is not satisfied fn get(&self) -> isize { *self } } fn main() { }