summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/async-move-doctest.rs
blob: 2ba61388c9e3b046dbcdf01f7c5dd3c86febcd1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags:--test
// edition:2018

// Prior to setting the default edition for the doctest pre-parser,
// this doctest would fail due to a fatal parsing error.
// see https://github.com/rust-lang/rust/issues/59313

//! ```
//! fn foo() {
//!     drop(async move {});
//! }
//! ```