]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/async-move-doctest.rs
Sync rustc_codegen_cranelift 'ddd4ce25535cf71203ba3700896131ce55fde795'
[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 //! ```