From a6d26eb053e9c56fdc9d9e20a2952041a165e559 Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Thu, 18 Apr 2019 09:15:39 -0500 Subject: add test for `async move` in a doctest --- src/test/rustdoc/async-move-doctest.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/rustdoc/async-move-doctest.rs (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/async-move-doctest.rs b/src/test/rustdoc/async-move-doctest.rs new file mode 100644 index 00000000000..42723132782 --- /dev/null +++ b/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 {}); +//! } +//! ``` -- cgit 1.4.1-3-g733a5