Closed
Description
This example only shows 1 error, from the AST borrow checker:
#![allow(warnings)]
#![feature(rustc_attrs)]
fn use_x(_: usize) -> bool { true }
#[rustc_mir_borrowck]
fn main() {
let mut v = [1, 2, 3];
let p = &v[0];
if true {
use_x(*p);
} else {
use_x(22);
}
v[0] += 1;
}
cc @arielb1