Skip to content

Commit 14285e9

Browse files
committed
docs: Enable required feature for 'closure_returning_async_block' lint
Failing to do this results in the lint example output complaining about the lint not existing instead of the thing the lint is supposed to be complaining about.
1 parent 0307e40 commit 14285e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: compiler/rustc_lint/src/async_closures.rs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare_lint! {
1212
/// ### Example
1313
///
1414
/// ```rust
15+
/// #![feature(async_closure)]
1516
/// #![warn(closure_returning_async_block)]
1617
/// let c = |x: &str| async {};
1718
/// ```

0 commit comments

Comments
 (0)