summaryrefslogtreecommitdiff
path: root/tests/trybuild/hidden-field.stderr
blob: 66fa73b1439cb972eadc92ba5cfde9d7e49a9132 (plain)
1
2
3
4
5
6
7
8
9
10
error[E0599]: no method named `name` found for struct `Crab` in the current scope
  --> tests/trybuild/hidden-field.rs:15:23
   |
 4 | struct Crab {
   | ----------- method `name` not found for this struct
...
15 |     assert_eq!(ferris.name().as_str(), "ferris");
   |                       ^^^^-- help: remove the arguments
   |                       |
   |                       field, not a method