Skip to content

Commit

Permalink
add test for async move in a doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed May 6, 2019
1 parent e66e1c7 commit a6d26eb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/rustdoc/async-move-doctest.rs
@@ -0,0 +1,14 @@
// 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

//! ```
//! #![feature(async_await)]
//!
//! fn foo() {
//! drop(async move {});
//! }
//! ```

0 comments on commit a6d26eb

Please sign in to comment.