2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:47:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let __isize = &mut x.y;
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^^ cannot borrow as mutable
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:51:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let __isize = &mut x.y;
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^^ cannot borrow as mutable
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:59:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | &mut x.y
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^^ cannot borrow as mutable
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:63:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | &mut x.y
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^^ cannot borrow as mutable
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0594]: cannot assign to data in a `&` reference
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:67:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.y = 3;
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^ cannot assign
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0594]: cannot assign to data in a `&` reference
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:71:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.y = 3;
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^ cannot assign
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0594]: cannot assign to data in a `&` reference
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:75:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.y = 3;
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^^^ cannot assign
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:83:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.set(0, 0);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:87:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.set(0, 0);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:95:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.y_mut()
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:99:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x.y_mut()
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:103:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | *x.y_mut() = 3;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:107:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | *x.y_mut() = 3;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error[E0596]: cannot borrow data in a `&` reference as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-borrow-overloaded-auto-deref.rs:111:6
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | *x.y_mut() = 3;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot borrow as mutable
|
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
For more information about this error, try `rustc --explain E0596`.
|