Skip to content

Commit dfe0ed0

Browse files
committed
test: Make issue-2590 test for implicit copies instead of moves.
With the removal of modes, function arguments can't demand that their arguments be moved anymore.
1 parent 799bc0a commit dfe0ed0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[forbid(implicit_copies)];
2+
13
import dvec::dvec;
24

35
type parser = {
@@ -10,7 +12,7 @@ trait parse {
1012

1113
impl parser: parse {
1214
fn parse() -> ~[mut int] {
13-
dvec::unwrap(self.tokens) //~ ERROR illegal move from self
15+
dvec::unwrap(self.tokens) //~ ERROR implicitly copying
1416
}
1517
}
1618

0 commit comments

Comments
 (0)