Skip to content

Commit

Permalink
Fix documentation of BorrowKind::Fake
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Apr 20, 2024
1 parent 217a4df commit 726fb55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_middle/src/mir/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ pub enum BorrowKind {
///
/// This is used when lowering index expressions and matches. This is used to prevent code like
/// the following from compiling:
/// ```compile_fail,E0506
/// let mut x = vec![vec![0, 1]];
/// let y = vec![];
/// ```compile_fail,E0510
/// let mut x: &[_] = &[[0, 1]];
/// let y: &[_] = &[];
/// let _ = x[0][{x = y; 1}];
/// ```
/// ```compile_fail,E0510
Expand Down

0 comments on commit 726fb55

Please sign in to comment.