Closed
Description
Update: I originally thought it's a soundness issue, but it may not be, see comment #98589 (comment).
This code compiles after #95565 although it shouldn't: (playground)
fn lives_as_long<'a, T>() where T: 'a, {}
fn test<'a, T>()
where
&'a (): Sized, // any predicate containing `'a`
{
|| {
lives_as_long::<'a, T>();
};
}
@rustbot label C-bug T-types regression-from-stable-to-nightly I-unsound A-NLL