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.
1 parent 7bb0bfe commit 2157590Copy full SHA for 2157590
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).subst_identity().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