Make all tests in async dir build-pass, adjust implements-fnmut test to begin ICEing during codegen
This commit is contained in:
parent
d1b7355d3d
commit
294436d273
5 changed files with 11 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//@ aux-build:block-on.rs
|
||||
//@ edition:2021
|
||||
//@ check-pass
|
||||
//@ build-pass
|
||||
|
||||
#![feature(async_closure)]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//@ aux-build:block-on.rs
|
||||
//@ edition:2021
|
||||
//@ check-pass
|
||||
//@ build-pass
|
||||
|
||||
#![feature(async_closure)]
|
||||
|
||||
|
|
|
|||
|
|
@ -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(); });
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
//@ check-pass
|
||||
//@ build-pass
|
||||
//@ edition: 2021
|
||||
|
||||
#![feature(async_closure)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue