1 // Regression test for #98095: make sure that
2 // we detect that S needs to outlive 'static.
4 fn outlives_forall<T>()
11 outlives_forall::<S>();
12 //~^ ERROR `S` does not live long enough
15 struct Value<'a>(&'a ());
17 outlives_forall::<Value<'a>>();
18 //~^ ERROR lifetime may not live long enough