]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-mut-addr-of-imm-var.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[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 }