2020-09-02 07:40:56 +00:00
|
|
|
error[E0616]: field `len` of struct `S` is private
|
2020-03-22 18:18:06 +00:00
|
|
|
--> $DIR/issue-26472.rs:11:15
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let v = s.len;
|
2020-03-22 18:18:06 +00:00
|
|
|
| ^^^ private field
|
2020-03-12 03:38:21 +00:00
|
|
|
|
|
|
|
|
help: a method `len` also exists, call it with parentheses
|
|
|
|
|
|
|
|
|
LL | let v = s.len();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++
|
2019-01-02 22:01:03 +00:00
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
error[E0616]: field `len` of struct `S` is private
|
2020-03-22 18:18:06 +00:00
|
|
|
--> $DIR/issue-26472.rs:12:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | s.len = v;
|
2020-03-22 18:18:06 +00:00
|
|
|
| ^^^ private field
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-01-02 22:01:03 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0616`.
|