]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/async-fn.rs
Auto merge of #56838 - Aaron1011:fix/rustdoc-infer-unify, r=nikomatsakis
[rust.git] / src / test / rustdoc / async-fn.rs
1 // edition:2018
2 // compile-flags:-Z unstable-options
3
4 // FIXME: once `--edition` is stable in rustdoc, remove that `compile-flags` directive
5
6 #![feature(async_await, futures_api)]
7
8 // @has async_fn/struct.S.html
9 // @has - '//code' 'pub async fn f()'
10 pub struct S;
11
12 impl S {
13     pub async fn f() {}
14 }