blob: 45712d1a710246469f8e8e9e2dbbd527c212ff49 [file] [log] [blame]
error[E0596]: cannot borrow immutable borrowed content `*x` as mutable
--> $DIR/borrowck-fn-in-const-b.rs:17:9
|
16 | fn broken(x: &Vec<String>) {
| ------------ use `&mut Vec<String>` here to make mutable
17 | x.push(format!("this is broken"));
| ^ cannot borrow as mutable
error: aborting due to previous error