]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/expr_use_visitor.rs
Ignore doctest for capture analysis examples
[rust.git] / compiler / rustc_typeck / src / expr_use_visitor.rs
index 72e5a7ef1b6e14ba667935240c0619862d358d03..1b51d5e0182fde51426de0751acd373488cacdd8 100644 (file)
@@ -611,7 +611,7 @@ fn walk_captures_closure_captures(&mut self, closure_expr: &hir::Expr<'_>) {
     /// In the following example the closures `c` only captures `p.x`` even though `incr`
     /// is a capture of the nested closure
     ///
-    /// ```rust
+    /// ```rust,ignore(cannot-test-this-because-pseduo-code)
     /// let p = ..;
     /// let c = || {
     ///    let incr = 10;