diff --git a/src/test/borrowck-loan-of-static-data-issue-27616.rs b/src/test/compile-fail/borrowck-loan-of-static-data-issue-27616.rs similarity index 94% rename from src/test/borrowck-loan-of-static-data-issue-27616.rs rename to src/test/compile-fail/borrowck-loan-of-static-data-issue-27616.rs index 228e71025fd..4dbab986881 100644 --- a/src/test/borrowck-loan-of-static-data-issue-27616.rs +++ b/src/test/compile-fail/borrowck-loan-of-static-data-issue-27616.rs @@ -23,7 +23,7 @@ fn evil(mut s: &'static mut String) let alias: &'static mut String = s; let inner: &str = &alias; // free value - *s = String::new(); //~ ERROR cannot assign + *s = String::new(); //~ ERROR use of moved value let _spray = "0wned".to_owned(); // ... and then use it println!("{}", inner);