From a51ae514ab2171523869ed81c79be659c38ef923 Mon Sep 17 00:00:00 2001 From: William Throwe Date: Sat, 19 Sep 2015 12:49:56 -0400 Subject: [PATCH] Move test to the right directory and make it pass I assume the expected error changed during the development of pull request #28321 and that wasn't noticed because the test was accidentally not running. --- .../borrowck-loan-of-static-data-issue-27616.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/test/{ => compile-fail}/borrowck-loan-of-static-data-issue-27616.rs (94%) 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 228e71025fdf4..4dbab986881c3 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);