fix doctests

This commit is contained in:
Gus Wynn 2021-09-11 12:39:33 -07:00
parent 461a0f3da4
commit ee1d2ea3b7

View File

@ -327,14 +327,16 @@ declare_lint! {
/// ### Example /// ### Example
/// ///
/// ```rust /// ```rust
/// #![feature(must_not_suspend)]
///
/// #[must_not_suspend] /// #[must_not_suspend]
/// struct SyncThing {} /// struct SyncThing {}
/// ///
/// async fn yield() {} /// async fn yield_now() {}
/// ///
/// pub async fn uhoh() { /// pub async fn uhoh() {
/// let guard = SyncThing {}; /// let guard = SyncThing {};
/// yield().await; /// yield_now().await;
/// } /// }
/// ``` /// ```
pub MUST_NOT_SUSPEND, pub MUST_NOT_SUSPEND,