We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02d5f7f + 2157590 commit 7ef46c8Copy full SHA for 7ef46c8
src/main_shim.rs
@@ -46,7 +46,7 @@ pub(crate) fn maybe_create_entry_wrapper(
46
is_main_fn: bool,
47
sigpipe: u8,
48
) {
49
- let main_ret_ty = tcx.fn_sig(rust_main_def_id).output();
+ let main_ret_ty = tcx.fn_sig(rust_main_def_id).no_bound_vars().unwrap().output();
50
// Given that `main()` has no arguments,
51
// then its return type cannot have
52
// late-bound regions, since late-bound
0 commit comments