1 2 3 4 5 6 7
pub trait MyFrom2<T> { fn my_from2(T) -> Self; } impl<T> MyFrom2<T> for T { fn my_from2(t: T) -> T { t } }