1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/issue-11681.rs:22:20
4 LL | let testValue = &Test; //~ ERROR borrowed value does not live long enough
5 | ^^^^ temporary value does not live long enough
8 | - temporary value only lives until here
10 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 21:15...
11 --> $DIR/issue-11681.rs:21:15
13 LL | fn createTest<'a>() -> &'a Test {
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0597`.