rust/src/test/ui/codemap_tests/one_line.rs
2018-12-25 21:08:33 -07:00

4 lines
116 B
Rust

fn main() {
let mut v = vec![Some("foo"), Some("bar")];
v.push(v.pop().unwrap()); //~ ERROR cannot borrow
}