mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
add EarlyBinder::no_bound_vars
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ fn create_entry_fn(
|
||||
is_main_fn: bool,
|
||||
sigpipe: u8,
|
||||
) {
|
||||
let main_ret_ty = tcx.fn_sig(rust_main_def_id).subst_identity().output();
|
||||
let main_ret_ty = tcx.fn_sig(rust_main_def_id).no_bound_vars().unwrap().output();
|
||||
// Given that `main()` has no arguments,
|
||||
// then its return type cannot have
|
||||
// late-bound regions, since late-bound
|
||||
|
||||
Reference in New Issue
Block a user