]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/nomicon/src/hrtb.md
New upstream version 1.55.0+dfsg1
[rustc.git] / src / doc / nomicon / src / hrtb.md
index 645986af13ace5aae29aa8bf5f1c7a1607a8dfa0..be5a55bbe6bb4678be4e20f461e2c4a81fcd3e4e 100644 (file)
@@ -28,6 +28,7 @@ fn main() {
 If we try to naively desugar this code in the same way that we did in the
 lifetimes section, we run into some trouble:
 
+<!-- ignore: desugared code -->
 ```rust,ignore
 struct Closure<F> {
     data: (u8, u16),
@@ -60,6 +61,7 @@ named until we enter the body of `call`! Also, that isn't some fixed lifetime;
 This job requires The Magic of Higher-Rank Trait Bounds (HRTBs). The way we
 desugar this is as follows:
 
+<!-- ignore: simplified code -->
 ```rust,ignore
 where for<'a> F: Fn(&'a (u8, u16)) -> &'a u8,
 ```