From 27e39c3ac6173e4a9e9e1439bfc48f0ca1505542 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 5 May 2025 17:35:41 +0200 Subject: Created `tests/rustdoc/async` subfolder to limit number of files at the top level --- tests/rustdoc/async/async-move-doctest.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/rustdoc/async/async-move-doctest.rs (limited to 'tests/rustdoc/async/async-move-doctest.rs') diff --git a/tests/rustdoc/async/async-move-doctest.rs b/tests/rustdoc/async/async-move-doctest.rs new file mode 100644 index 00000000000..e18ec353533 --- /dev/null +++ b/tests/rustdoc/async/async-move-doctest.rs @@ -0,0 +1,12 @@ +//@ 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 + +//! ``` +//! fn foo() { +//! drop(async move {}); +//! } +//! ``` -- cgit 1.4.1-3-g733a5