File tree 2 files changed +2
-2
lines changed
compiler/rustc_middle/src
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -651,7 +651,7 @@ pub enum BorrowKind {
651
651
/// in an aliasable location. To solve, you'd have to translate with
652
652
/// an `&mut` borrow:
653
653
///
654
- /// struct Env { x: & &mut isize }
654
+ /// struct Env { x: &mut &mut isize }
655
655
/// let x: &mut isize = ...;
656
656
/// let y = (&mut Env { &mut x }, fn_ptr); // changed from &x to &mut x
657
657
/// fn fn_ptr(env: &mut Env) { **env.x += 5; }
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ pub enum BorrowKind {
347
347
/// an `&mut` borrow:
348
348
///
349
349
/// ```
350
- /// struct Env { x: & &mut isize }
350
+ /// struct Env { x: &mut &mut isize }
351
351
/// let x: &mut isize = ...;
352
352
/// let y = (&mut Env { &mut x }, fn_ptr); // changed from &x to &mut x
353
353
/// fn fn_ptr(env: &mut Env) { **env.x += 5; }
You can’t perform that action at this time.
0 commit comments