diff options
Diffstat (limited to 'src/test/rustdoc/edition-flag.rs')
-rw-r--r-- | src/test/rustdoc/edition-flag.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/rustdoc/edition-flag.rs b/src/test/rustdoc/edition-flag.rs new file mode 100644 index 000000000..e54c7d296 --- /dev/null +++ b/src/test/rustdoc/edition-flag.rs @@ -0,0 +1,11 @@ +// compile-flags:--test +// edition:2018 + +/// ```rust +/// fn main() { +/// let _ = async { }; +/// } +/// ``` +fn main() { + let _ = async { }; +} |