]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / borrowck / borrowck-mut-addr-of-imm-var.rs
1 fn main() {
2     let x: isize = 3;
3     let y: &mut isize = &mut x; //~ ERROR cannot borrow
4     *y = 5;
5     println!("{}", *y);
6 }