]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_borrowck/src/diagnostics/region_name.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_borrowck / src / diagnostics / region_name.rs
index 459d4a783e40f06042bbd4f5660e5e35c53622a7..c4cef5710aecb4a7ce556dccd667bbdb65db78da 100644 (file)
@@ -210,7 +210,7 @@ fn synthesize_region_name(&self) -> Symbol {
     /// Suppose we are trying to give a name to the lifetime of the
     /// reference `x`:
     ///
-    /// ```
+    /// ```ignore (pseudo-rust)
     /// fn foo(x: &u32) { .. }
     /// ```
     ///
@@ -746,7 +746,7 @@ fn give_name_if_anonymous_region_appears_in_output(&self, fr: RegionVid) -> Opti
     /// e.g. given the function:
     ///
     /// ```
-    /// async fn foo() -> i32 {}
+    /// async fn foo() -> i32 { 2 }
     /// ```
     ///
     /// this function, given the lowered return type of `foo`, an [`OpaqueDef`] that implements `Future<Output=i32>`,