File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,15 +165,15 @@ pub struct TypeckResults<'tcx> {
165
165
/// reading places that are mentioned in a closure (because of _ patterns). However,
166
166
/// to ensure the places are initialized, we introduce fake reads.
167
167
/// Consider these two examples:
168
- /// ``` (discriminant matching with only wildcard arm)
168
+ /// ```ignore (discriminant matching with only wildcard arm)
169
169
/// let x: u8;
170
170
/// let c = || match x { _ => () };
171
171
/// ```
172
172
/// In this example, we don't need to actually read/borrow `x` in `c`, and so we don't
173
173
/// want to capture it. However, we do still want an error here, because `x` should have
174
174
/// to be initialized at the point where c is created. Therefore, we add a "fake read"
175
175
/// instead.
176
- /// ``` (destructured assignments)
176
+ /// ```ignore (destructured assignments)
177
177
/// let c = || {
178
178
/// let (t1, t2) = t;
179
179
/// }
You can’t perform that action at this time.
0 commit comments