rust/tests/ui/codemap_tests/one_line.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
116 B
Rust
Raw Normal View History

fn main() {
let mut v = vec![Some("foo"), Some("bar")];
2017-11-20 12:13:27 +00:00
v.push(v.pop().unwrap()); //~ ERROR cannot borrow
}