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
@ -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…
Reference in New Issue
Block a user