We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaaf3f6 commit 56d1987Copy full SHA for 56d1987
src/libsyntax/parse/parser.rs
@@ -1086,7 +1086,6 @@ impl Parser {
1086
self.expect(&token::COLON);
1087
pat
1088
} else {
1089
- is_mutbl = false;
1090
ast_util::ident_to_pat(self.get_id(),
1091
*self.last_span,
1092
special_idents::invalid)
src/test/run-pass/traits-default-method-mut.rs
@@ -1,4 +1,4 @@
1
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2
// file at the top-level directory of this distribution and at
3
// http://rust-lang.org/COPYRIGHT.
4
//
@@ -11,7 +11,7 @@
11
#[allow(default_methods)];
12
13
trait Foo {
14
- fn foo(mut v: int) { v = 1; }
+ fn foo(&self, mut v: int) { v = 1; }
15
}
16
17
fn main() {}
0 commit comments