fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0596]: cannot borrow `**t` as mutable, as it is behind a `&` reference 2 --> $DIR/trivial-bounds-inconsistent-copy-reborrow.rs:6:5 3 | 4LL | *t 5 | ^^ `t` is a `&` reference, so the data it refers to cannot be borrowed as mutable 6 | 7help: consider changing this to be a mutable reference 8 | 9LL | fn reborrow_mut<'a>(t: &'a mut &'a mut i32) -> &'a mut i32 where &'a mut i32: Copy { 10 | +++ 11 12error[E0596]: cannot borrow `**t` as mutable, as it is behind a `&` reference 13 --> $DIR/trivial-bounds-inconsistent-copy-reborrow.rs:10:6 14 | 15LL | {*t} 16 | ^^ `t` is a `&` reference, so the data it refers to cannot be borrowed as mutable 17 | 18help: consider changing this to be a mutable reference 19 | 20LL | fn copy_reborrow_mut<'a>(t: &'a mut &'a mut i32) -> &'a mut i32 where &'a mut i32: Copy { 21 | +++ 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0596`.