]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/borrowck-fn-in-const-b.stderr
New upstream version 1.19.0+dfsg1
[rustc.git] / src / test / ui / span / borrowck-fn-in-const-b.stderr
CommitLineData
7cac9316 1error[E0596]: cannot borrow immutable borrowed content `*x` as mutable
476ff2be
SL
2 --> $DIR/borrowck-fn-in-const-b.rs:17:9
3 |
416 | fn broken(x: &Vec<String>) {
5 | ------------ use `&mut Vec<String>` here to make mutable
617 | x.push(format!("this is broken"));
32a655c1 7 | ^ cannot borrow as mutable
476ff2be 8
7cac9316 9error: aborting due to previous error(s)
476ff2be 10