]> git.lizzy.rs Git - rust.git/blob - src/test/ui/confuse-field-and-method/issue-18343.stderr
Implement existential types
[rust.git] / src / test / ui / confuse-field-and-method / issue-18343.stderr
1 error[E0599]: no method named `closure` found for type `Obj<[closure@$DIR/issue-18343.rs:16:28: 16:33]>` in the current scope
2   --> $DIR/issue-18343.rs:17:7
3    |
4 LL | struct Obj<F> where F: FnMut() -> u32 {
5    | ------------------------------------- method `closure` not found for this
6 ...
7 LL |     o.closure();
8    |       ^^^^^^^ field, not a method
9    |
10    = help: use `(o.closure)(...)` if you meant to call the function stored in the `closure` field
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0599`.