rust/src/test/ui/issues/issue-26472.stderr

18 lines
591 B
Plaintext
Raw Normal View History

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