Skip to content

Commit a51ae51

Browse files
committed
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.
1 parent 53ba768 commit a51ae51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/test/borrowck-loan-of-static-data-issue-27616.rs renamed to src/test/compile-fail/borrowck-loan-of-static-data-issue-27616.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn evil(mut s: &'static mut String)
2323
let alias: &'static mut String = s;
2424
let inner: &str = &alias;
2525
// free value
26-
*s = String::new(); //~ ERROR cannot assign
26+
*s = String::new(); //~ ERROR use of moved value
2727
let _spray = "0wned".to_owned();
2828
// ... and then use it
2929
println!("{}", inner);

0 commit comments

Comments
 (0)