Skip to content

Commit fbce450

Browse files
committed
Auto merge of #28519 - wthrowe:fixup-28321, r=alexcrichton
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. r? @nikomatsakis
2 parents 23b1e48 + a51ae51 commit fbce450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)