]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26472.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-26472.stderr
1 error[E0616]: field `len` of struct `sub::S` is private
2   --> $DIR/issue-26472.rs:11:13
3    |
4 LL |     let v = s.len;
5    |             ^^---
6    |               |
7    |               help: a method `len` also exists, call it with parentheses: `len()`
8
9 error[E0616]: field `len` of struct `sub::S` is private
10   --> $DIR/issue-26472.rs:12:5
11    |
12 LL |     s.len = v;
13    |     ^^^^^
14
15 error: aborting due to 2 previous errors
16
17 For more information about this error, try `rustc --explain E0616`.