Adjust tests wrt. 'async_closure' feature gate.
This commit is contained in:
parent
bb7fbb99a2
commit
43315bc15e
20 changed files with 206 additions and 76 deletions
8
src/test/ui/async-await/feature-async-closure.rs
Normal file
8
src/test/ui/async-await/feature-async-closure.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
// edition:2018
|
||||
// gate-test-async_closure
|
||||
|
||||
fn f() {
|
||||
let _ = async || {}; //~ ERROR async closures are unstable
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue