error[E0616]: field `len` of struct `sub::S` is private | |
--> $DIR/issue-26472.rs:11:13 | |
| | |
LL | let v = s.len; | |
| ^^--- | |
| | | |
| help: a method `len` also exists, call it with parentheses: `len()` | |
error[E0616]: field `len` of struct `sub::S` is private | |
--> $DIR/issue-26472.rs:12:5 | |
| | |
LL | s.len = v; | |
| ^^^^^ | |
error: aborting due to 2 previous errors | |
For more information about this error, try `rustc --explain E0616`. |