using shadowed impls may add unnecessary region constraints #125
Open
Description
trait Trait<'a> {
type Assoc;
}
impl<T> Trait<'static> for T {
type Assoc = ();
}
// normalizing requires `'a == 'static`, the trait bound does not.
fn foo<'a, T: Trait<'a>>(_: T::Assoc) {}
Originally posted by @lcnr in #12 (comment)
Metadata
Assignees
Labels
No labels
Activity