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