summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-90483-inaccessible-field-adjustment.stderr
blob: fff9f5da16ff4d134d97058a6a5782b93e1b4ccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0616]: field `foo` of struct `S` is private
  --> $DIR/issue-90483-inaccessible-field-adjustment.rs:11:18
   |
LL |   || s.foo() + s.foo;
   |                  ^^^ private field
   |
help: a method `foo` also exists, call it with parentheses
   |
LL |   || s.foo() + s.foo();
   |                     ++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0616`.