fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
527 B20 linesraw
1error[E0616]: field `len` of struct `sub::S` is private
2  --> $DIR/issue-26472.rs:11:15
3   |
4LL |     let v = s.len;
5   |               ^^^ private field
6   |
7help: a method `len` also exists, call it with parentheses
8   |
9LL |     let v = s.len();
10   |                  ^^
11
12error[E0616]: field `len` of struct `sub::S` is private
13  --> $DIR/issue-26472.rs:12:7
14   |
15LL |     s.len = v;
16   |       ^^^ private field
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0616`.