]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/async-move-doctest.rs
Rollup merge of #61438 - estebank:generics-span, r=varkor
[rust.git] / src / test / rustdoc / async-move-doctest.rs
1 // compile-flags:--test
2 // edition:2018
3
4 // prior to setting the default edition for the doctest pre-parser, this doctest would fail due to
5 // a fatal parsing error
6 // see https://github.com/rust-lang/rust/issues/59313
7
8 //! ```
9 //! #![feature(async_await)]
10 //!
11 //! fn foo() {
12 //!     drop(async move {});
13 //! }
14 //! ```