]> git.lizzy.rs Git - rust.git/blob - src/test/ui/confuse-field-and-method/issue-32128.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / confuse-field-and-method / issue-32128.stderr
1 error[E0599]: no method named `example` found for type `Example` in the current scope
2   --> $DIR/issue-32128.rs:22:10
3    |
4 LL | struct Example {
5    | -------------- method `example` not found for this
6 ...
7 LL |     demo.example(1);
8    |          ^^^^^^^ field, not a method
9    |
10    = help: use `(demo.example)(...)` if you meant to call the function stored in the `example` field
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0599`.