Make all tests in async dir build-pass, adjust implements-fnmut test to begin ICEing during codegen

This commit is contained in:
Michael Goulet 2024-06-29 15:25:14 -04:00
parent d1b7355d3d
commit 294436d273
5 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,5 @@
//@ edition: 2021
//@ check-pass
//@ build-pass
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver

View file

@ -1,6 +1,6 @@
//@ aux-build:block-on.rs
//@ edition:2021
//@ check-pass
//@ build-pass
#![feature(async_closure)]

View file

@ -1,6 +1,6 @@
//@ aux-build:block-on.rs
//@ edition:2021
//@ check-pass
//@ build-pass
#![feature(async_closure)]

View file

@ -1,4 +1,4 @@
//@ check-pass
//@ build-pass
//@ edition: 2021
// Demonstrates that an async closure may implement `FnMut` (not just `async FnMut`!)
@ -9,9 +9,13 @@
#![feature(async_closure)]
fn main() {}
fn main() {
hello(&Ty);
}
fn needs_fn_mut<T>(x: impl FnMut() -> T) {}
fn needs_fn_mut<T>(mut x: impl FnMut() -> T) {
x();
}
fn hello(x: &Ty) {
needs_fn_mut(async || { x.hello(); });

View file

@ -1,4 +1,4 @@
//@ check-pass
//@ build-pass
//@ edition: 2021
#![feature(async_closure)]