]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-26619.rs
slice_patterns: remove gates in tests
[rust.git] / src / test / ui / issues / issue-26619.rs
index cd89c674e4996e79ff130c21e786f78e3815b1aa..b9d34b0555aee515694e36e9fb8b5021de4498f3 100644 (file)
@@ -1,11 +1,9 @@
-#![feature(slice_patterns)]
-
 pub struct History<'a> { pub _s: &'a str }
 
 impl<'a> History<'a> {
     pub fn get_page(&self) {
         for s in vec!["1|2".to_string()].into_iter().filter_map(|ref line| self.make_entry(line)) {
-            //~^ ERROR borrowed value does not live long enough
+            //~^ ERROR cannot return value referencing function parameter
             println!("{:?}", s);
         }
     }