]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/coercion.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_typeck / src / check / coercion.rs
index b44baf83cbe1e61fecbf61c6e31debf86eb6f6c7..c563d57ed96bbc7c988c3c579b177b0c1bb81aed 100644 (file)
@@ -21,7 +21,7 @@
 //! When inferring the generic arguments of functions, the argument
 //! order is relevant, which can lead to the following edge case:
 //!
-//! ```rust
+//! ```ignore (illustrative)
 //! fn foo<T>(a: T, b: T) {
 //!     // ...
 //! }
@@ -1210,7 +1210,7 @@ fn try_find_coercion_lub<E>(
 ///
 /// Example:
 ///
-/// ```
+/// ```ignore (illustrative)
 /// let mut coerce = CoerceMany::new(expected_ty);
 /// for expr in exprs {
 ///     let expr_ty = fcx.check_expr_with_expectation(expr, expected);