]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/outlives/outlives_bounds.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_typeck / src / outlives / outlives_bounds.rs
index 435df9c00f466aa5e8d45d1e2ed00aa72d320888..87f844fafe67f1001bcbbc3e0a72f9da0879f9cf 100644 (file)
@@ -26,9 +26,9 @@ impl<'cx, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'cx, 'tcx> {
     /// calling that fn, and hence the *callee* can assume that its
     /// argument types are well-formed. This may imply certain relationships
     /// between generic parameters. For example:
-    ///
-    ///     fn foo<'a,T>(x: &'a T)
-    ///
+    /// ```
+    /// fn foo<'a,T>(x: &'a T) {}
+    /// ```
     /// can only be called with a `'a` and `T` such that `&'a T` is WF.
     /// For `&'a T` to be WF, `T: 'a` must hold. So we can assume `T: 'a`.
     ///