Disallow type parameters to self. Closes #2422.

This commit is contained in:
Michael Sullivan 2012-05-22 11:52:22 -07:00
parent f2ad7c3426
commit 8d7f3bd1ca

View File

@ -302,6 +302,7 @@ fn ast_ty_to_ty<AC: ast_conv, RS: region_scope copy>(
// n.b.: resolve guarantees that the self type only appears in an
// iface, which we rely upon in various places when creating
// substs
check_path_args(tcx, path, NO_TPS | NO_REGIONS);
ty::mk_self(tcx)
}
_ {