- also removed redundant assignment to is_mutbl
- updated copyright
self.expect(&token::COLON);
pat
} else {
- is_mutbl = false;
ast_util::ident_to_pat(self.get_id(),
*self.last_span,
special_idents::invalid)
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
#[allow(default_methods)];
trait Foo {
- fn foo(mut v: int) { v = 1; }
+ fn foo(&self, mut v: int) { v = 1; }
}
fn main() {}