Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
17
tests/ui/async-await/async-error-span.rs
Normal file
17
tests/ui/async-await/async-error-span.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
// edition:2018
|
||||
|
||||
// Regression test for issue #62382.
|
||||
|
||||
use std::future::Future;
|
||||
|
||||
fn get_future() -> impl Future<Output = ()> {
|
||||
//~^ ERROR `()` is not a future
|
||||
panic!()
|
||||
}
|
||||
|
||||
async fn foo() {
|
||||
let a; //~ ERROR type inside `async fn` body must be known in this context
|
||||
get_future().await;
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue