]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/async-move-doctest.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[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,
5 // this doctest would fail due to a fatal parsing error.
6 // see https://github.com/rust-lang/rust/issues/59313
7
8 //! ```
9 //! fn foo() {
10 //!     drop(async move {});
11 //! }
12 //! ```