2018-08-09 11:46:39 -05:00
|
|
|
// edition:2018
|
|
|
|
|
// compile-flags:-Z unstable-options
|
|
|
|
|
|
|
|
|
|
// FIXME: once `--edition` is stable in rustdoc, remove that `compile-flags` directive
|
|
|
|
|
|
2018-08-16 02:09:12 +03:00
|
|
|
#![feature(async_await, futures_api)]
|
2018-08-09 11:46:39 -05:00
|
|
|
|
|
|
|
|
// @has async_fn/struct.S.html
|
|
|
|
|
// @has - '//code' 'pub async fn f()'
|
|
|
|
|
pub struct S;
|
|
|
|
|
|
|
|
|
|
impl S {
|
|
|
|
|
pub async fn f() {}
|
|
|
|
|
}
|