about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/async_closures.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_lint/src/async_closures.rs')
-rw-r--r--compiler/rustc_lint/src/async_closures.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/async_closures.rs b/compiler/rustc_lint/src/async_closures.rs
index 33cc5738262..2a821b71103 100644
--- a/compiler/rustc_lint/src/async_closures.rs
+++ b/compiler/rustc_lint/src/async_closures.rs
@@ -12,6 +12,7 @@ declare_lint! {
     /// ### Example
     ///
     /// ```rust
+    /// #![feature(async_closure)]
     /// #![warn(closure_returning_async_block)]
     /// let c = |x: &str| async {};
     /// ```