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
289 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 {});
//! }
//! ```