1 error[E0506]: cannot assign to `*s` because it is borrowed
2 --> $DIR/borrowck-loan-of-static-data-issue-27616.rs:16:5
4 LL | let alias: &'static mut String = s;
5 | ------------------- - `*s` is borrowed here
7 | type annotation requires that `*s` is borrowed for `'static`
9 LL | *s = String::new();
10 | ^^ `*s` is assigned to here but it was already borrowed
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0506`.