os-rust/tests/ui/issues/issue-26472.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
517 B
Text
Raw Normal View History

error[E0616]: field `len` of struct `S` is private
2020-03-22 11:18:06 -07:00
--> $DIR/issue-26472.rs:11:15
|
2019-03-09 15:03:44 +03:00
LL | let v = s.len;
2020-03-22 11:18:06 -07:00
| ^^^ 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
2020-03-22 11:18:06 -07:00
--> $DIR/issue-26472.rs:12:7
|
2019-03-09 15:03:44 +03:00
LL | s.len = v;
2020-03-22 11:18:06 -07:00
| ^^^ private field
error: aborting due to 2 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0616`.