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
///
/// ```rust
/// #![feature(must_not_suspend)]
///
/// #[must_not_suspend]
/// struct SyncThing {}
///
/// async fn yield() {}
/// async fn yield_now() {}
///
/// pub async fn uhoh() {
/// let guard = SyncThing {};
/// yield().await;
/// yield_now().await;
/// }
/// ```
pub MUST_NOT_SUSPEND,