fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.2 KiB103 linesraw
1error[E0594]: cannot assign to `***p`, which is behind a `&` reference
2  --> $DIR/borrowck-issue-14498.rs:16:5
3   |
4LL |     ***p = 2;
5   |     ^^^^^^^^ `p` is a `&` reference, so the data it refers to cannot be written
6   |
7help: consider changing this to be a mutable reference
8   |
9LL |     let p = &mut y;
10   |              +++
11
12error[E0506]: cannot assign to `**y` because it is borrowed
13  --> $DIR/borrowck-issue-14498.rs:25:5
14   |
15LL |     let p = &y;
16   |             -- `**y` is borrowed here
17LL |     let q = &***p;
18LL |     **y = 2;
19   |     ^^^^^^^ `**y` is assigned to here but it was already borrowed
20LL |     drop(p);
21   |          - borrow later used here
22
23error[E0506]: cannot assign to `**y` because it is borrowed
24  --> $DIR/borrowck-issue-14498.rs:35:5
25   |
26LL |     let p = &y;
27   |             -- `**y` is borrowed here
28LL |     let q = &***p;
29LL |     **y = 2;
30   |     ^^^^^^^ `**y` is assigned to here but it was already borrowed
31LL |     drop(p);
32   |          - borrow later used here
33
34error[E0506]: cannot assign to `**y` because it is borrowed
35  --> $DIR/borrowck-issue-14498.rs:45:5
36   |
37LL |     let p = &y;
38   |             -- `**y` is borrowed here
39LL |     let q = &***p;
40LL |     **y = 2;
41   |     ^^^^^^^ `**y` is assigned to here but it was already borrowed
42LL |     drop(p);
43   |          - borrow later used here
44
45error[E0506]: cannot assign to `**y` because it is borrowed
46  --> $DIR/borrowck-issue-14498.rs:55:5
47   |
48LL |     let p = &y;
49   |             -- `**y` is borrowed here
50LL |     let q = &***p;
51LL |     **y = 2;
52   |     ^^^^^^^ `**y` is assigned to here but it was already borrowed
53LL |     drop(p);
54   |          - borrow later used here
55
56error[E0506]: cannot assign to `**y.a` because it is borrowed
57  --> $DIR/borrowck-issue-14498.rs:65:5
58   |
59LL |     let p = &y.a;
60   |             ---- `**y.a` is borrowed here
61LL |     let q = &***p;
62LL |     **y.a = 2;
63   |     ^^^^^^^^^ `**y.a` is assigned to here but it was already borrowed
64LL |     drop(p);
65   |          - borrow later used here
66
67error[E0506]: cannot assign to `**y.a` because it is borrowed
68  --> $DIR/borrowck-issue-14498.rs:75:5
69   |
70LL |     let p = &y.a;
71   |             ---- `**y.a` is borrowed here
72LL |     let q = &***p;
73LL |     **y.a = 2;
74   |     ^^^^^^^^^ `**y.a` is assigned to here but it was already borrowed
75LL |     drop(p);
76   |          - borrow later used here
77
78error[E0506]: cannot assign to `**y.a` because it is borrowed
79  --> $DIR/borrowck-issue-14498.rs:85:5
80   |
81LL |     let p = &y.a;
82   |             ---- `**y.a` is borrowed here
83LL |     let q = &***p;
84LL |     **y.a = 2;
85   |     ^^^^^^^^^ `**y.a` is assigned to here but it was already borrowed
86LL |     drop(p);
87   |          - borrow later used here
88
89error[E0506]: cannot assign to `**y.a` because it is borrowed
90  --> $DIR/borrowck-issue-14498.rs:95:5
91   |
92LL |     let p = &y.a;
93   |             ---- `**y.a` is borrowed here
94LL |     let q = &***p;
95LL |     **y.a = 2;
96   |     ^^^^^^^^^ `**y.a` is assigned to here but it was already borrowed
97LL |     drop(p);
98   |          - borrow later used here
99
100error: aborting due to 9 previous errors
101
102Some errors have detailed explanations: E0506, E0594.
103For more information about an error, try `rustc --explain E0506`.