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