]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0596]: cannot borrow immutable borrowed content `*x` as mutable |
476ff2be SL |
2 | --> $DIR/borrowck-fn-in-const-b.rs:17:9 |
3 | | | |
4 | 16 | fn broken(x: &Vec<String>) { | |
5 | | ------------ use `&mut Vec<String>` here to make mutable | |
6 | 17 | x.push(format!("this is broken")); | |
32a655c1 | 7 | | ^ cannot borrow as mutable |
476ff2be | 8 | |
7cac9316 | 9 | error: aborting due to previous error(s) |
476ff2be | 10 |