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
+1
View File
@@ -302,6 +302,7 @@ fn check_path_args(tcx: ty::ctxt,
// 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)
}
_ {