Skip to content

Commit d4012e7

Browse files
committed
test: Make issue-2590 conform to the spirit of the test better
1 parent dfe0ed0 commit d4012e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/compile-fail/issue-2590.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#[forbid(implicit_copies)];
2-
31
import dvec::dvec;
42

53
type parser = {
@@ -12,7 +10,7 @@ trait parse {
1210

1311
impl parser: parse {
1412
fn parse() -> ~[mut int] {
15-
dvec::unwrap(self.tokens) //~ ERROR implicitly copying
13+
dvec::unwrap(move self.tokens) //~ ERROR illegal move from self
1614
}
1715
}
1816

0 commit comments

Comments
 (0)