]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/mod.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_infer / src / infer / mod.rs
index 6ec929f98950e6a64901cb84620a2f7dd41b88dd..c9121f7d348ce4cadc44ce5fcae76ff6a8ad7e92 100644 (file)
@@ -159,9 +159,9 @@ pub struct InferCtxtInner<'tcx> {
     /// outlive the lifetime 'a". These constraints derive from
     /// instantiated type parameters. So if you had a struct defined
     /// like
-    ///
+    /// ```ignore (illustrative)
     ///     struct Foo<T:'static> { ... }
-    ///
+    /// ```
     /// then in some expression `let x = Foo { ... }` it will
     /// instantiate the type parameter `T` with a fresh type `$0`. At
     /// the same time, it will record a region obligation of