// Regression test for #98095: make sure that // we detect that S needs to outlive 'static. fn outlives_forall() where for<'u> T: 'u, { } fn test1() { outlives_forall::(); //~^ ERROR `S` does not live long enough } struct Value<'a>(&'a ()); fn test2<'a>() { outlives_forall::>(); //~^ ERROR lifetime may not live long enough } fn main() {}