We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BorrowKind::Fake
1 parent 217a4df commit 726fb55Copy full SHA for 726fb55
compiler/rustc_middle/src/mir/syntax.rs
@@ -170,9 +170,9 @@ pub enum BorrowKind {
170
///
171
/// This is used when lowering index expressions and matches. This is used to prevent code like
172
/// the following from compiling:
173
- /// ```compile_fail,E0506
174
- /// let mut x = vec![vec![0, 1]];
175
- /// let y = vec![];
+ /// ```compile_fail,E0510
+ /// let mut x: &[_] = &[[0, 1]];
+ /// let y: &[_] = &[];
176
/// let _ = x[0][{x = y; 1}];
177
/// ```
178
/// ```compile_fail,E0510
0 commit comments