rust/src/test/ui/E0596.rs

9 lines
177 B
Rust
Raw Normal View History

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