1 // Test that we assume that universal types like `T` outlive the
8 // No errors here, because `'a` is local to the body.
9 fn region_within_body<T>(t: T) {
11 let cell = Cell::new(&some_int);
15 // Error here, because T: 'a is not satisfied.
16 fn region_static<'a, T>(cell: Cell<&'a usize>, t: T) {
18 //~^ ERROR the parameter type `T` may not live long enough
21 fn outlives<'a, T>(x: Cell<&'a usize>, y: T)