1 error[E0597]: borrowed value does not live long enough (Ast)
2 --> $DIR/issue-46472.rs:14:10
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 13:1...
11 --> $DIR/issue-46472.rs:13:1
13 13 | / fn bar<'a>() -> &'a mut u32 {
15 15 | | //~^ ERROR borrowed value does not live long enough (Ast) [E0597]
16 16 | | //~| ERROR borrowed value does not live long enough (Mir) [E0597]
20 error[E0597]: borrowed value does not live long enough (Mir)
21 --> $DIR/issue-46472.rs:14:10
24 | ^ temporary value does not live long enough
27 | - temporary value only lives until here
29 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 13:1...
30 --> $DIR/issue-46472.rs:13:1
32 13 | / fn bar<'a>() -> &'a mut u32 {
34 15 | | //~^ ERROR borrowed value does not live long enough (Ast) [E0597]
35 16 | | //~| ERROR borrowed value does not live long enough (Mir) [E0597]
39 error: aborting due to 2 previous errors