mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-09 15:13:57 +00:00
Remove async_await feature gate tests.
This commit is contained in:
parent
b0d4782948
commit
6a14411b76
@ -1,9 +0,0 @@
|
||||
// edition:2015
|
||||
|
||||
async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
|
||||
//~^ ERROR async fn is unstable
|
||||
|
||||
fn main() {
|
||||
let _ = async {}; //~ ERROR cannot find struct, variant or union type `async`
|
||||
let _ = async || { true }; //~ ERROR cannot find value `async` in this scope
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
error[E0670]: `async fn` is not permitted in the 2015 edition
|
||||
--> $DIR/feature-gate-async-await-2015-edition.rs:3:1
|
||||
|
|
||||
LL | async fn foo() {}
|
||||
| ^^^^^
|
||||
|
||||
error[E0422]: cannot find struct, variant or union type `async` in this scope
|
||||
--> $DIR/feature-gate-async-await-2015-edition.rs:7:13
|
||||
|
|
||||
LL | let _ = async {};
|
||||
| ^^^^^ not found in this scope
|
||||
|
||||
error[E0425]: cannot find value `async` in this scope
|
||||
--> $DIR/feature-gate-async-await-2015-edition.rs:8:13
|
||||
|
|
||||
LL | let _ = async || { true };
|
||||
| ^^^^^ not found in this scope
|
||||
|
||||
error[E0658]: async fn is unstable
|
||||
--> $DIR/feature-gate-async-await-2015-edition.rs:3:1
|
||||
|
|
||||
LL | async fn foo() {}
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
|
||||
= help: add `#![feature(async_await)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0422, E0425, E0658, E0670.
|
||||
For more information about an error, try `rustc --explain E0422`.
|
@ -1,18 +0,0 @@
|
||||
// edition:2018
|
||||
|
||||
struct S;
|
||||
|
||||
impl S {
|
||||
async fn foo() {} //~ ERROR async fn is unstable
|
||||
}
|
||||
|
||||
trait T {
|
||||
async fn foo(); //~ ERROR trait fns cannot be declared `async`
|
||||
//~^ ERROR async fn is unstable
|
||||
}
|
||||
|
||||
async fn foo() {} //~ ERROR async fn is unstable
|
||||
|
||||
fn main() {
|
||||
let _ = async {}; //~ ERROR async blocks are unstable
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
error[E0706]: trait fns cannot be declared `async`
|
||||
--> $DIR/feature-gate-async-await.rs:10:5
|
||||
|
|
||||
LL | async fn foo();
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0658]: async fn is unstable
|
||||
--> $DIR/feature-gate-async-await.rs:6:5
|
||||
|
|
||||
LL | async fn foo() {}
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
|
||||
= help: add `#![feature(async_await)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: async fn is unstable
|
||||
--> $DIR/feature-gate-async-await.rs:10:5
|
||||
|
|
||||
LL | async fn foo();
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
|
||||
= help: add `#![feature(async_await)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: async fn is unstable
|
||||
--> $DIR/feature-gate-async-await.rs:14:1
|
||||
|
|
||||
LL | async fn foo() {}
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
|
||||
= help: add `#![feature(async_await)]` to the crate attributes to enable
|
||||
|
||||
error[E0658]: async blocks are unstable
|
||||
--> $DIR/feature-gate-async-await.rs:17:13
|
||||
|
|
||||
LL | let _ = async {};
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
|
||||
= help: add `#![feature(async_await)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
Loading…
Reference in New Issue
Block a user