Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
11
tests/ui/async-await/async-trait-fn.rs
Normal file
11
tests/ui/async-await/async-trait-fn.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
// edition:2018
|
||||
trait T {
|
||||
async fn foo() {} //~ ERROR functions in traits cannot be declared `async`
|
||||
async fn bar(&self) {} //~ ERROR functions in traits cannot be declared `async`
|
||||
async fn baz() { //~ ERROR functions in traits cannot be declared `async`
|
||||
// Nested item must not ICE.
|
||||
fn a() {}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue