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

9 lines
177 B
Rust

// revisions: ast mir
//[mir]compile-flags: -Z borrowck=mir
fn main() {
let x = 1;
let y = &mut x; //[ast]~ ERROR [E0596]
//[mir]~^ ERROR [E0596]
}