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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
287 B
Rust
Raw Normal View History

2019-04-18 22:15:39 +08:00
// compile-flags:--test
// edition:2018
2019-08-02 09:45:58 +08: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 22:15:39 +08:00
// see https://github.com/rust-lang/rust/issues/59313
//! ```
//! fn foo() {
//! drop(async move {});
//! }
//! ```