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
This commit is contained in:
commit
fbce4503f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue