Allow using self as a pattern in fn args
diff --git a/src/expr.rs b/src/expr.rs
index 3074b99..8ebb28b 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -905,7 +905,11 @@
     named!(pat_ident -> Pat, do_parse!(
         mode: option!(keyword!("ref")) >>
         mutability: mutability >>
-        name: ident >>
+        name: alt!(
+            ident
+            |
+            keyword!("self") => { Into::into }
+        ) >>
         not!(peek!(punct!("<"))) >>
         not!(peek!(punct!("::"))) >>
         subpat: option!(preceded!(punct!("@"), pat)) >>