]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-26472.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-26472.stderr
1 error[E0616]: field `len` of struct `sub::S` is private
2 --> $DIR/issue-26472.rs:11:15
3 |
4 LL | let v = s.len;
5 | ^^^ private field
6 |
7 help: a method `len` also exists, call it with parentheses
8 |
9 LL | let v = s.len();
10 | ^^
11
12 error[E0616]: field `len` of struct `sub::S` is private
13 --> $DIR/issue-26472.rs:12:7
14 |
15 LL | s.len = v;
16 | ^^^ private field
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0616`.