]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/async-move-doctest.rs
Migrate `rustc_parse` to derive diagnostics
[rust.git] / tests / 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 //! ```