2012-08-13 18:11:38 -07:00
|
|
|
#[forbid(implicit_copies)];
|
|
|
|
|
2012-06-21 17:41:40 -07:00
|
|
|
import dvec::dvec;
|
|
|
|
|
|
|
|
type parser = {
|
|
|
|
tokens: dvec<int>,
|
|
|
|
};
|
|
|
|
|
2012-07-11 15:00:40 -07:00
|
|
|
trait parse {
|
|
|
|
fn parse() -> ~[mut int];
|
|
|
|
}
|
|
|
|
|
2012-08-07 18:10:06 -07:00
|
|
|
impl parser: parse {
|
2012-07-14 12:19:36 -07:00
|
|
|
fn parse() -> ~[mut int] {
|
2012-08-13 18:11:38 -07:00
|
|
|
dvec::unwrap(self.tokens) //~ ERROR implicitly copying
|
2012-06-21 17:41:40 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|