diff options
| author | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-08-09 11:46:39 -0500 |
|---|---|---|
| committer | QuietMisdreavus <grey@quietmisdreavus.net> | 2018-08-09 11:46:39 -0500 |
| commit | 0511b01506434b7ee070ebf4ec6c5aacb406ab6a (patch) | |
| tree | f8e8ccc920adb29a48bba67d9670f6ee2ea32b7e /src/test/rustdoc | |
| parent | fbb6275f4fd6cf774e1789fabfacae7248c45021 (diff) | |
| download | rust-0511b01506434b7ee070ebf4ec6c5aacb406ab6a.tar.gz rust-0511b01506434b7ee070ebf4ec6c5aacb406ab6a.zip | |
set the syntax edition in the driver's phase 1
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/async-fn.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/rustdoc/async-fn.rs b/src/test/rustdoc/async-fn.rs new file mode 100644 index 00000000000..21ad5159946 --- /dev/null +++ b/src/test/rustdoc/async-fn.rs @@ -0,0 +1,24 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// edition:2018 +// compile-flags:-Z unstable-options + +// FIXME: once `--edition` is stable in rustdoc, remove that `compile-flags` directive + +#![feature(rust_2018_preview, 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() {} +} |
