46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
error[E0596]: cannot borrow immutable borrowed content as mutable
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:23:24
|
|
|
|
|
LL | let __isize = &mut *x;
|
|
| ^^ cannot borrow as mutable
|
|
|
|
error[E0596]: cannot borrow immutable borrowed content as mutable
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:27:24
|
|
|
|
|
LL | let __isize = &mut *x;
|
|
| ^^ cannot borrow as mutable
|
|
|
|
error[E0596]: cannot borrow immutable borrowed content as mutable
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:35:10
|
|
|
|
|
LL | &mut **x
|
|
| ^^^ cannot borrow as mutable
|
|
|
|
error[E0596]: cannot borrow immutable borrowed content as mutable
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:39:10
|
|
|
|
|
LL | &mut **x
|
|
| ^^^ cannot borrow as mutable
|
|
|
|
error[E0594]: cannot assign to immutable borrowed content
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:43:5
|
|
|
|
|
LL | *x = 3;
|
|
| ^^^^^^ cannot borrow as mutable
|
|
|
|
error[E0594]: cannot assign to immutable borrowed content
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:47:5
|
|
|
|
|
LL | **x = 3;
|
|
| ^^^^^^^ cannot borrow as mutable
|
|
|
|
error[E0594]: cannot assign to immutable borrowed content
|
|
--> $DIR/borrowck-borrow-overloaded-deref.rs:51:5
|
|
|
|
|
LL | **x = 3;
|
|
| ^^^^^^^ cannot borrow as mutable
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0596`.
|