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