fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
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`.