Skip to content

Commit

Permalink
Auto merge of #28519 - wthrowe:fixup-28321, r=alexcrichton
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Sep 20, 2015
2 parents 23b1e48 + a51ae51 commit fbce450
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fbce450

Please sign in to comment.