fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

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