rust/tests/rustdoc/async-move-doctest.rs

13 lines
287 B
Rust
Raw Normal View History

2019-04-18 09:15:39 -05:00
// compile-flags:--test
// edition:2018
2019-08-01 20:45:58 -05:00
// Prior to setting the default edition for the doctest pre-parser,
// this doctest would fail due to a fatal parsing error.
2019-04-18 09:15:39 -05:00
// see https://github.com/rust-lang/rust/issues/59313
//! ```
//! fn foo() {
//! drop(async move {});
//! }
//! ```