Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
15
tests/ui/async-await/nested-in-impl.rs
Normal file
15
tests/ui/async-await/nested-in-impl.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Test that async fn works when nested inside of
|
||||
// impls with lifetime parameters.
|
||||
//
|
||||
// check-pass
|
||||
// edition:2018
|
||||
|
||||
struct Foo<'a>(&'a ());
|
||||
|
||||
impl<'a> Foo<'a> {
|
||||
fn test() {
|
||||
async fn test() {}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() { }
|
Loading…
Add table
Add a link
Reference in a new issue