1 error[E0599]: no method named `nonexistent_method` found for fn item `fn(_) -> Option<_> {Option::<_>::Some}` in the current scope
2 --> $DIR/issue-96738.rs:2:10
4 LL | Some.nonexistent_method();
5 | ---- ^^^^^^^^^^^^^^^^^^ method not found in `fn(_) -> Option<_> {Option::<_>::Some}`
7 | this is the constructor of an enum variant
9 help: call the constructor
11 LL | (Some)(_).nonexistent_method();
14 error[E0609]: no field `nonexistent_field` on type `fn(_) -> Option<_> {Option::<_>::Some}`
15 --> $DIR/issue-96738.rs:3:10
17 LL | Some.nonexistent_field;
18 | ---- ^^^^^^^^^^^^^^^^^
20 | this is the constructor of an enum variant
22 help: call the constructor
24 LL | (Some)(_).nonexistent_field;
27 error: aborting due to 2 previous errors
29 Some errors have detailed explanations: E0599, E0609.
30 For more information about an error, try `rustc --explain E0599`.