1
Fork 0

Ignore doctest for capture analysis examples

This commit is contained in:
Aman Arora 2020-11-15 18:06:30 -05:00
parent bb8c5e5d8b
commit 40dfe1eddd
3 changed files with 12 additions and 9 deletions

View file

@ -797,12 +797,12 @@ pub struct CaptureInfo<'tcx> {
/// None. In such case we fallback on uvpars_mentioned for span.
///
/// Eg:
/// ```rust
/// let x = ...;
/// ```rust,no_run
/// let x = 5;
///
/// let c = || {
/// let _ = x
/// }
/// };
/// ```
///
/// In this example, if `capture_disjoint_fields` is **not** set, then x will be captured,