]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_typeck/src/check/inherited.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / compiler / rustc_typeck / src / check / inherited.rs
index 62ca728868b45595cf57a788b65882982a8c0c44..5cd63cae8ad9b8534cfd3d39a3a98d94241843b3 100644 (file)
@@ -17,11 +17,11 @@ use std::cell::RefCell;
 use std::ops::Deref;
 
 /// Closures defined within the function. For example:
-///
-///     fn foo() {
-///         bar(move|| { ... })
-///     }
-///
+/// ```ignore (illustrative)
+/// fn foo() {
+///     bar(move|| { ... })
+/// }
+/// ```
 /// Here, the function `foo()` and the closure passed to
 /// `bar()` will each have their own `FnCtxt`, but they will
 /// share the inherited fields.