]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-describe-lvalue.rs
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-describe-lvalue.rs
index c27d9519dc7986f640221273ad467e330e80a21b..0e6c0635adb45dce953311af9de061e78610555b 100644 (file)
@@ -1,7 +1,3 @@
-// ignore-tidy-linelength
-
-#![feature(slice_patterns)]
-
 pub struct Foo {
   x: u32
 }
@@ -208,10 +204,8 @@ fn main() {
         fn bump<'a>(mut block: &mut Block<'a>) {
             let x = &mut block;
             let p: &'a u8 = &*block.current;
-            //~^ WARNING cannot borrow `*block.current` as immutable because it is also borrowed as mutable
-            //~| this error has been downgraded
-            //~| this warning will become a hard error in the future
-            // Warning because of issue rust#38899
+            //~^ ERROR cannot borrow `*block.current` as immutable because it is also borrowed as mutable
+            // See issue rust#38899
             drop(x);
         }
     }
@@ -225,10 +219,8 @@ fn main() {
         unsafe fn bump2(mut block: *mut Block2) {
             let x = &mut block;
             let p : *const u8 = &*(*block).current;
-            //~^ WARNING cannot borrow `*block.current` as immutable because it is also borrowed as mutable
-            //~| this error has been downgraded
-            //~| this warning will become a hard error in the future
-            // Warning because of issue rust#38899
+            //~^ ERROR cannot borrow `*block.current` as immutable because it is also borrowed as mutable
+            // See issue rust#38899
             drop(x);
         }
     }