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:
bors 2015-09-20 03:57:13 +00:00
commit fbce4503f8

View File

@ -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);