]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/async-move-doctest.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 //! ```