diff --git a/src/parser.rs b/src/parser.rs index fe5e177..5206818 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -157,7 +157,7 @@ impl Parser { fn declaration(&mut self) -> ParseResult { use tokenizer::Token::*; - expect!(self, Fn, "Expected 'fn'"); + expect!(self, Keyword(Kw::Fn), "Expected 'fn'"); let prototype = try!(self.prototype()); let body: Vec = try!(self.body()); expect!(self, Keyword(Kw::End), "Expected 'end'");