]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/select/confirmation.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_trait_selection / src / traits / select / confirmation.rs
index b97ab39d991fee4dd05b23d2f0f9d46bfe254379..771a3072af5d94475aa29de59fbecdeb82a7f852 100644 (file)
@@ -712,9 +712,9 @@ fn confirm_closure_candidate(
     /// and we desugared it so that the type of the expression is
     /// `Closure`, and `Closure` expects `i32` as argument. Then it
     /// is "as if" the compiler generated this impl:
-    ///
-    ///     impl Fn(i32) for Closure { ... }
-    ///
+    /// ```ignore (illustrative)
+    /// impl Fn(i32) for Closure { ... }
+    /// ```
     /// Now imagine our obligation is `Closure: Fn(usize)`. So far
     /// we have matched the self type `Closure`. At this point we'll
     /// compare the `i32` to `usize` and generate an error.