Closed
Description
The new solver breaks the following:
trait Leak<'a> {}
impl Leak<'_> for Box<u32> {}
impl Leak<'static> for Box<u16> {}
fn impl_trait<T: for<'a> Leak<'a>>() {}
fn main() {
impl_trait::<Box<_>>();
//~^ ERROR type annotations needed
}
This needs investigation. The old and new solvers share the same leak-check logic. They shouldn't behave differently.
Metadata
Metadata
Assignees
Labels
No labels