test: Make issue-2590 conform to the spirit of the test better
This commit is contained in:
parent
dfe0ed033f
commit
d4012e7895
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user