diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-12 19:32:14 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-13 20:07:10 -0700 |
| commit | 8fa66e8e07ca565119de195ceefb20cff50ae1ea (patch) | |
| tree | f9ae9910b40b04ae62daff56b8de1ae002765d2e /src/test/compile-fail/mutable-class-fields-2.rs | |
| parent | a410652bc953137c8d579f218c2e3e68a9ef8c1c (diff) | |
librustc: Remove implicit self from the language, except for old-style drop blocks.
Diffstat (limited to 'src/test/compile-fail/mutable-class-fields-2.rs')
| -rw-r--r-- | src/test/compile-fail/mutable-class-fields-2.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/mutable-class-fields-2.rs b/src/test/compile-fail/mutable-class-fields-2.rs index 3a63cdee20c..56c715c9847 100644 --- a/src/test/compile-fail/mutable-class-fields-2.rs +++ b/src/test/compile-fail/mutable-class-fields-2.rs @@ -16,7 +16,7 @@ struct cat { } pub impl cat { - fn eat() { + fn eat(&self) { self.how_hungry -= 5; } |
