]> 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 40690bd844bce6f6980e95b770b41c18fa75bcd2..9d89f4b05c5b93770238813e08fdbbc6f1bc614c 100644 (file)
@@ -12,7 +12,7 @@
 
 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
     };