Hi, I am trying to create a trait that marks some built-in types as valid for consumption for a Struct via slices, but I am unable to produce the right "From". Any ideas how to make below compile?
trait Bla: Sized {}
impl Bla for u32 {}
struct A {}
impl<U: Bla, T: AsRef<[U]>> From<T> for A {
fn from(_p: T) -> Self {
Self {}
}
}
fn main() {
A::from(&[1u32]);
}