1 // This tests verifies that unary structs and enum variants
2 // are treated as rvalues and their lifetime is not bounded to
11 fn createTest<'a>() -> &'a Test {
12 let testValue = &Test;
13 return testValue; //~ ERROR cannot return value referencing temporary value