1 error[E0594]: cannot assign to `***p`, which is behind a `&` reference
2 --> $DIR/borrowck-issue-14498.rs:16:5
5 | -- help: consider changing this to be a mutable reference: `&mut y`
7 | ^^^^^^^^ `p` is a `&` reference, so the data it refers to cannot be written
9 error[E0506]: cannot assign to `**y` because it is borrowed
10 --> $DIR/borrowck-issue-14498.rs:25:5
13 | -- borrow of `**y` occurs here
16 | ^^^^^^^ assignment to borrowed `**y` occurs here
18 | - borrow later used here
20 error[E0506]: cannot assign to `**y` because it is borrowed
21 --> $DIR/borrowck-issue-14498.rs:35:5
24 | -- borrow of `**y` occurs here
27 | ^^^^^^^ assignment to borrowed `**y` occurs here
29 | - borrow later used here
31 error[E0506]: cannot assign to `**y` because it is borrowed
32 --> $DIR/borrowck-issue-14498.rs:45:5
35 | -- borrow of `**y` occurs here
38 | ^^^^^^^ assignment to borrowed `**y` occurs here
40 | - borrow later used here
42 error[E0506]: cannot assign to `**y` because it is borrowed
43 --> $DIR/borrowck-issue-14498.rs:55:5
46 | -- borrow of `**y` occurs here
49 | ^^^^^^^ assignment to borrowed `**y` occurs here
51 | - borrow later used here
53 error[E0506]: cannot assign to `**y.a` because it is borrowed
54 --> $DIR/borrowck-issue-14498.rs:65:5
57 | ---- borrow of `**y.a` occurs here
60 | ^^^^^^^^^ assignment to borrowed `**y.a` occurs here
62 | - borrow later used here
64 error[E0506]: cannot assign to `**y.a` because it is borrowed
65 --> $DIR/borrowck-issue-14498.rs:75:5
68 | ---- borrow of `**y.a` occurs here
71 | ^^^^^^^^^ assignment to borrowed `**y.a` occurs here
73 | - borrow later used here
75 error[E0506]: cannot assign to `**y.a` because it is borrowed
76 --> $DIR/borrowck-issue-14498.rs:85:5
79 | ---- borrow of `**y.a` occurs here
82 | ^^^^^^^^^ assignment to borrowed `**y.a` occurs here
84 | - borrow later used here
86 error[E0506]: cannot assign to `**y.a` because it is borrowed
87 --> $DIR/borrowck-issue-14498.rs:95:5
90 | ---- borrow of `**y.a` occurs here
93 | ^^^^^^^^^ assignment to borrowed `**y.a` occurs here
95 | - borrow later used here
97 error: aborting due to 9 previous errors
99 Some errors have detailed explanations: E0506, E0594.
100 For more information about an error, try `rustc --explain E0506`.