]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/many-mutable-borrows.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / many-mutable-borrows.rs
1 fn main() {
2     let v = Vec::new(); //~ ERROR cannot borrow `v` as mutable, as it is not declared as mutable
3     v.push(0);
4     v.push(0);
5     v.push(0);
6     v.push(0);
7     v.push(0);
8     v.push(0);
9     v.push(0);
10     v.push(0);
11     v.push(0);
12     v.push(0);
13     v.push(0);
14     v.push(0);
15     v.push(0);
16     v.push(0);
17     v.push(0);
18 }