error[E0597]: borrowed value does not live long enough --> $DIR/regions-ret.rs:14:13 | LL | return &id(3); //~ ERROR borrowed value does not live long enough | ^^^^^- temporary value only lives until here | | | temporary value does not live long enough | note: borrowed value must be valid for the anonymous lifetime #1 defined on the function body at 13:1... --> $DIR/regions-ret.rs:13:1 | LL | / fn f(_x: &isize) -> &isize { LL | | return &id(3); //~ ERROR borrowed value does not live long enough LL | | } | |_^ error: aborting due to previous error For more information about this error, try `rustc --explain E0597`.