1
Fork 0

add EarlyBinder::no_bound_vars

This commit is contained in:
Kyle Matsuda 2023-01-19 12:09:01 -07:00
parent c2414dfaa4
commit ab40ba2fb1
5 changed files with 9 additions and 4 deletions

View file

@ -1296,7 +1296,7 @@ impl<'v> RootCollector<'_, 'v> {
};
let start_def_id = self.tcx.require_lang_item(LangItem::Start, None);
let main_ret_ty = self.tcx.fn_sig(main_def_id).subst_identity().output();
let main_ret_ty = self.tcx.fn_sig(main_def_id).no_bound_vars().unwrap().output();
// Given that `main()` has no arguments,
// then its return type cannot have