]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-closures-mut-of-imm.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-closures-mut-of-imm.rs
index 24e06e3c4e666f524455ecdd39e57542082980f7..d7e187a2b39580ba2927e5deb330d1473d57b2da 100644 (file)
@@ -1,10 +1,6 @@
 // Tests that two closures cannot simultaneously have mutable
 // and immutable access to the variable. Issue #6801.
 
-fn get(x: &isize) -> isize {
-    *x
-}
-
 fn set(x: &mut isize) {
     *x = 4;
 }