fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0506]: cannot assign to `*s` because it is borrowed 2 --> $DIR/borrowck-loan-of-static-data-issue-27616.rs:16:5 3 | 4LL | let alias: &'static mut String = s; 5 | ------------------- - borrow of `*s` occurs here 6 | | 7 | type annotation requires that `*s` is borrowed for `'static` 8... 9LL | *s = String::new(); 10 | ^^ assignment to borrowed `*s` occurs here 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0506`.