fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0616]: field `len` of struct `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 `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`.