rustboot: If something that wasn't a type was found where a type was expected, report where the error was

This commit is contained in:
Patrick Walton 2010-11-05 17:30:53 -07:00
parent 35eb088ae3
commit 79015e2d59

View file

@ -306,7 +306,7 @@ let rec lookup_type_by_name
| Some (DEFN_ty_param (_, x)) ->
(Ast.TY_param x, [||])
| _ ->
err None "Found non-type binding for %a"
err loc "Found non-type binding for %a"
Ast.sprintf_name name
in
let args =