Ignore doctest for capture analysis examples
This commit is contained in:
parent
bb8c5e5d8b
commit
40dfe1eddd
3 changed files with 12 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue