]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-borrowed-uniq-rvalue-2.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / compile-fail / borrowck-borrowed-uniq-rvalue-2.rs
index a9c4fa9a4b5eb4728c66dbe763c26adccbe6e3c2..ef9bee80c2b2db02ddc5caf309dad4ef42e9f818 100644 (file)
@@ -28,6 +28,7 @@ fn defer<'r>(x: &'r [&'r str]) -> defer<'r> {
 }
 
 fn main() {
-    let x = defer(vec!("Goodbye", "world!")); //~ ERROR borrowed value does not live long enough
+    let x = defer(vec!("Goodbye", "world!").as_slice());
+    //~^ ERROR borrowed value does not live long enough
     x.x[0];
 }