mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
21 lines
517 B
Plaintext
21 lines
517 B
Plaintext
error[E0616]: field `len` of struct `S` is private
|
|
--> $DIR/issue-26472.rs:11:15
|
|
|
|
|
LL | let v = s.len;
|
|
| ^^^ private field
|
|
|
|
|
help: a method `len` also exists, call it with parentheses
|
|
|
|
|
LL | let v = s.len();
|
|
| ++
|
|
|
|
error[E0616]: field `len` of struct `S` is private
|
|
--> $DIR/issue-26472.rs:12:7
|
|
|
|
|
LL | s.len = v;
|
|
| ^^^ private field
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0616`.
|