]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-90483-inaccessible-field-adjustment.stderr
Auto merge of #107318 - matthiaskrgr:rollup-776kd81, r=matthiaskrgr
[rust.git] / tests / ui / typeck / issue-90483-inaccessible-field-adjustment.stderr
1 error[E0616]: field `foo` of struct `S` is private
2   --> $DIR/issue-90483-inaccessible-field-adjustment.rs:11:18
3    |
4 LL |   || s.foo() + s.foo;
5    |                  ^^^ private field
6    |
7 help: a method `foo` also exists, call it with parentheses
8    |
9 LL |   || s.foo() + s.foo();
10    |                     ++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0616`.