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 06:13:27 -06:00
v.push(v.pop().unwrap()); //~ ERROR cannot borrow
}