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