summaryrefslogtreecommitdiffstats
path: root/tests/ui/codemap_tests/one_line.rs
blob: bb36813dbddf54e15b3a3b56fe5fd757a5be2c74 (plain)
1
2
3
4
fn main() {
    let mut v = vec![Some("foo"), Some("bar")];
    v.push(v.pop().unwrap()); //~ ERROR cannot borrow
}