]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/collect/type_of.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_typeck / src / collect / type_of.rs
index 495b8d3b4eeb38470a3a3976f35884d56d658f29..5bb3f92e2f80b2ed5800c1a5a6d54bbc70f31412 100644 (file)
@@ -531,7 +531,7 @@ pub(super) fn type_of(tcx: TyCtxt<'_>, def_id: DefId) -> Ty<'_> {
 /// In particular, definitions of opaque types can only use other generics as arguments,
 /// and they cannot repeat an argument. Example:
 ///
-/// ```rust
+/// ```ignore (illustrative)
 /// type Foo<A, B> = impl Bar<A, B>;
 ///
 /// // Okay -- `Foo` is applied to two distinct, generic types.