Skip to content

Commit a6d26eb

Browse files
add test for async move in a doctest
1 parent e66e1c7 commit a6d26eb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// compile-flags:--test
2+
// edition:2018
3+
4+
// prior to setting the default edition for the doctest pre-parser, this doctest would fail due to
5+
// a fatal parsing error
6+
// see https://github.com/rust-lang/rust/issues/59313
7+
8+
//! ```
9+
//! #![feature(async_await)]
10+
//!
11+
//! fn foo() {
12+
//! drop(async move {});
13+
//! }
14+
//! ```

0 commit comments

Comments
 (0)