|
1 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
2 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:47:19 |
| 1 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 2 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:36:19 |
3 | 3 | | |
4 | 4 | LL | let __isize = &mut x.y; |
5 | 5 | | ^^^^^^^^ cannot borrow as mutable |
| 6 | + | |
| 7 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
6 | 8 |
|
7 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
8 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:51:19 |
| 9 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 10 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:40:19 |
9 | 11 | | |
10 | 12 | LL | let __isize = &mut x.y; |
11 | 13 | | ^^^^^^^^ cannot borrow as mutable |
| 14 | + | |
| 15 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
12 | 16 |
|
13 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
14 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:59:5 |
| 17 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 18 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:48:5 |
15 | 19 | | |
16 | 20 | LL | &mut x.y |
17 | 21 | | ^^^^^^^^ cannot borrow as mutable |
| 22 | + | |
| 23 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
18 | 24 |
|
19 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
20 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:63:5 |
| 25 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 26 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:52:5 |
21 | 27 | | |
22 | 28 | LL | &mut x.y |
23 | 29 | | ^^^^^^^^ cannot borrow as mutable |
| 30 | + | |
| 31 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
24 | 32 |
|
25 | | -error[E0594]: cannot assign to data in a `&` reference |
26 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:67:5 |
| 33 | +error[E0594]: cannot assign to data in an `Rc` |
| 34 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:56:5 |
27 | 35 | | |
28 | 36 | LL | x.y = 3; |
29 | 37 | | ^^^^^^^ cannot assign |
| 38 | + | |
| 39 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
30 | 40 |
|
31 | | -error[E0594]: cannot assign to data in a `&` reference |
32 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:71:5 |
| 41 | +error[E0594]: cannot assign to data in an `Rc` |
| 42 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:60:5 |
33 | 43 | | |
34 | 44 | LL | x.y = 3; |
35 | 45 | | ^^^^^^^ cannot assign |
| 46 | + | |
| 47 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
36 | 48 |
|
37 | | -error[E0594]: cannot assign to data in a `&` reference |
38 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:75:5 |
| 49 | +error[E0594]: cannot assign to data in an `Rc` |
| 50 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:64:5 |
39 | 51 | | |
40 | 52 | LL | x.y = 3; |
41 | 53 | | ^^^^^^^ cannot assign |
| 54 | + | |
| 55 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
42 | 56 |
|
43 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
44 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:83:5 |
| 57 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 58 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:72:5 |
45 | 59 | | |
46 | 60 | LL | x.set(0, 0); |
47 | 61 | | ^ cannot borrow as mutable |
| 62 | + | |
| 63 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
48 | 64 |
|
49 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
50 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:87:5 |
| 65 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 66 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:76:5 |
51 | 67 | | |
52 | 68 | LL | x.set(0, 0); |
53 | 69 | | ^ cannot borrow as mutable |
| 70 | + | |
| 71 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
54 | 72 |
|
55 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
56 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:95:5 |
| 73 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 74 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:84:5 |
57 | 75 | | |
58 | 76 | LL | x.y_mut() |
59 | 77 | | ^ cannot borrow as mutable |
| 78 | + | |
| 79 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
60 | 80 |
|
61 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
62 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:99:5 |
| 81 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 82 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:88:5 |
63 | 83 | | |
64 | 84 | LL | x.y_mut() |
65 | 85 | | ^ cannot borrow as mutable |
| 86 | + | |
| 87 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
66 | 88 |
|
67 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
68 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:103:6 |
| 89 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 90 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:92:6 |
69 | 91 | | |
70 | 92 | LL | *x.y_mut() = 3; |
71 | 93 | | ^ cannot borrow as mutable |
| 94 | + | |
| 95 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
72 | 96 |
|
73 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
74 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:107:6 |
| 97 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 98 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:96:6 |
75 | 99 | | |
76 | 100 | LL | *x.y_mut() = 3; |
77 | 101 | | ^ cannot borrow as mutable |
| 102 | + | |
| 103 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
78 | 104 |
|
79 | | -error[E0596]: cannot borrow data in a `&` reference as mutable |
80 | | - --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:111:6 |
| 105 | +error[E0596]: cannot borrow data in an `Rc` as mutable |
| 106 | + --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:100:6 |
81 | 107 | | |
82 | 108 | LL | *x.y_mut() = 3; |
83 | 109 | | ^ cannot borrow as mutable |
| 110 | + | |
| 111 | + = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `std::rc::Rc<Point>` |
84 | 112 |
|
85 | 113 | error: aborting due to 14 previous errors |
86 | 114 |
|
|
0 commit comments