Open PizzaCrust opened 3 years ago
Another case:
trait A {}
trait B {}
trait C: B {}
struct E<'a, T>(&'a T);
impl<'a, T> B for E<'a, T> where &'a T: A {}
impl<'a, T> C for E<'a, T> where &'a T: A {}
So I guess the problem lies within array/reference bounds
Environment
Problem description
The IDE incorrectly says that
B
is not implemented forE<[T]>
, however the example compiles.Steps to reproduce