Skip to content

Commit

Permalink
Move test to the right directory and make it pass
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.
  • Loading branch information
wthrowe committed Sep 19, 2015
1 parent 53ba768 commit a51ae51
Showing 1 changed file with 1 addition and 1 deletion.
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 a51ae51

Please sign in to comment.