mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
Disallow type parameters to self. Closes #2422.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
_ {
|
||||
|
||||
Reference in New Issue
Block a user