test: Make issue-2590 conform to the spirit of the test better

This commit is contained in:
Patrick Walton 2012-08-13 18:15:20 -07:00
parent dfe0ed033f
commit d4012e7895

View File

@ -1,5 +1,3 @@
#[forbid(implicit_copies)];
import dvec::dvec;
type parser = {
@ -12,7 +10,7 @@ trait parse {
impl parser: parse {
fn parse() -> ~[mut int] {
dvec::unwrap(self.tokens) //~ ERROR implicitly copying
dvec::unwrap(move self.tokens) //~ ERROR illegal move from self
}
}