fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
545 B17 linesraw
1error[E0599]: no method named `closure` found for struct `Obj` in the current scope
2  --> $DIR/issue-18343.rs:7:7
3   |
4LL | struct Obj<F> where F: FnMut() -> u32 {
5   | ------------- method `closure` not found for this struct
6...
7LL |     o.closure();
8   |       ^^^^^^^ field, not a method
9   |
10help: to call the function stored in `closure`, surround the field access with parentheses
11   |
12LL |     (o.closure)();
13   |     +         +
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0599`.