Complain on unexpected native symbol, rather than failing with none-exhaustive match.

This commit is contained in:
Graydon Hoare 2011-03-07 10:02:01 -08:00
parent 5041944fd2
commit 44bceb84a7

View File

@ -1836,6 +1836,9 @@ impure fn parse_native_item(parser p) -> @ast.native_item {
case (token.FN) {
ret parse_item_native_fn(p, eff);
}
case (?t) {
unexpected(p, t);
}
}
}