Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

ices/68841.sh: fixed with no errors #507

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#68841

#!/bin/bash

rustc -Z mir-opt-level=2 --edition 2018 - << END
#![feature(async_closure)]

use std::future::Future;

fn async_closure() -> impl Future<Output = u8> {
    (async move || -> u8 {
        42
    })()
}

fn main() {
    let _fut = async_closure();
}

END
=== stdout ===
=== stderr ===
==============

=== stdout ===
=== stderr ===
==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fixed by rust-lang/rust#77306.

@JohnTitor JohnTitor merged commit 580bc66 into master Oct 19, 2020
@JohnTitor JohnTitor deleted the autofix/ices/68841.sh branch October 19, 2020 12:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants