diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index fb3e8a5ded5..360742b37b7 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -698,7 +698,8 @@ pub impl Parser { let path = self.parse_path_with_tps(false); ty_path(path, self.get_id()) } else { - self.fatal(~"expected type"); + self.fatal(fmt!("expected type, found token %?", + *self.token)); }; let sp = mk_sp(lo, self.last_span.hi); |
