1 // Check that explicit region bounds are allowed on the various
2 // nominal types (but not on other types) and that they are type
5 struct TupleStruct<'a>(&'a isize);
6 struct Struct<'a> { x:&'a isize }
8 fn a_fn1<'a,'b>(e: TupleStruct<'a>) -> TupleStruct<'b> {
10 //~^ ERROR lifetime may not live long enough
13 fn a_fn3<'a,'b>(e: Struct<'a>) -> Struct<'b> {
15 //~^ ERROR lifetime may not live long enough