// FIXME https://github.com/jfaleiro/library-extensions-rs/issues/1 // #![no_std] use core_ext::convert::To; struct A(u8); impl To for A {} struct B(u8); impl From for B { fn from(value: A) -> Self { Self(value.0 + 1) } } impl To for B {} struct C(u8); impl From for C { fn from(value: B) -> Self { Self(value.0 + 2) } } fn main() { assert_eq!(3_u8, A(2).to::().to::().0); }