summary refs log tree commit diff
path: root/src/test/rustdoc/async-fn.rs
blob: a0b6c29126092d0a975dfe59c28378ade9931def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// edition:2018
// compile-flags:-Z unstable-options

// FIXME: once `--edition` is stable in rustdoc, remove that `compile-flags` directive

#![feature(async_await, futures_api)]

// @has async_fn/struct.S.html
// @has - '//code' 'pub async fn f()'
pub struct S;

impl S {
    pub async fn f() {}
}