]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/fallback.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_typeck / src / check / fallback.rs
index 85132317824076160bf8b538e3d2f0ab582625fc..15788f410f1951bf92733bd0ad8bfdc8df2fdb49 100644 (file)
@@ -144,6 +144,7 @@ fn fallback_if_possible(
     /// code. The most common case is something like this:
     ///
     /// ```rust
+    /// # fn foo() -> i32 { 4 }
     /// match foo() {
     ///     22 => Default::default(), // call this type `?D`
     ///     _ => return, // return has type `!`
@@ -168,7 +169,7 @@ fn fallback_if_possible(
     /// fallback to use based on whether there is a coercion pattern
     /// like this:
     ///
-    /// ```
+    /// ```ignore (not-rust)
     /// ?Diverging -> ?V
     /// ?NonDiverging -> ?V
     /// ?V != ?NonDiverging