fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0599]: no method named `closure` found for type `Obj<[closure@$DIR/issue-18343.rs:6:28: 6:33]>` 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 6... 7LL | o.closure(); 8 | ^^^^^^^ field, not a method 9help: to call the function stored in `closure`, surround the field access with parentheses 10 | 11LL | (o.closure)(); 12 | ^ ^ 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0599`.