]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_infer/src/infer/at.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_infer / src / infer / at.rs
index 58c309a5c52ea7a52aa3efbe39157cc8ad225ff6..39f7d30e81aca096a4289ae588ac000ba002d0c1 100644 (file)
@@ -6,7 +6,7 @@
 //! is always the "expected" output from the POV of diagnostics.
 //!
 //! Examples:
-//!
+//! ```ignore (fragment)
 //!     infcx.at(cause, param_env).sub(a, b)
 //!     // requires that `a <: b`, with `a` considered the "expected" type
 //!
 //!
 //!     infcx.at(cause, param_env).eq(a, b)
 //!     // requires that `a == b`, with `a` considered the "expected" type
-//!
+//! ```
 //! For finer-grained control, you can also do use `trace`:
-//!
+//! ```ignore (fragment)
 //!     infcx.at(...).trace(a, b).sub(&c, &d)
-//!
+//! ```
 //! This will set `a` and `b` as the "root" values for
 //! error-reporting, but actually operate on `c` and `d`. This is
 //! sometimes useful when the types of `c` and `d` are not traceable