1 error[E0506]: cannot assign to `*s` because it is borrowed
2 --> $DIR/guarantor-issue-46974.rs:7:5
4 LL | let t = &mut *s; // this borrow should last for the entire function
5 | ------- borrow of `*s` occurs here
8 | ^^^^^^^^^ assignment to borrowed `*s` occurs here
10 | -- borrow later used here
12 error: lifetime may not live long enough
13 --> $DIR/guarantor-issue-46974.rs:13:5
15 LL | fn bar(s: &Box<(i32,)>) -> &'static i32 {
16 | - let's call the lifetime of this reference `'1`
17 LL | // FIXME(#46983): error message should be better
19 | ^^^^ returning this value requires that `'1` must outlive `'static`
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0506`.