]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/range-2.rs
remove unnecessary parentheses from range notation
[rust.git] / src / test / compile-fail / range-2.rs
index 74c304884a07c09f3a20b3328f43f6d8093eb5d4..9d89f4b05c5b93770238813e08fdbbc6f1bc614c 100644 (file)
@@ -9,11 +9,10 @@
 // except according to those terms.
 
 // Test range syntax - borrow errors.
-#![feature(slicing_syntax)]
 
 pub fn main() {
     let r = {
-        (&42i)..&42
+        &42is..&42
         //~^ ERROR borrowed value does not live long enough
         //~^^ ERROR borrowed value does not live long enough
     };