1 error[E0599]: no method named `nonexistent_method` found for enum constructor `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 error[E0609]: no field `nonexistent_field` on type `fn(_) -> Option<_> {Option::<_>::Some}`
8 --> $DIR/issue-96738.rs:3:10
10 LL | Some.nonexistent_field;
13 error: aborting due to 2 previous errors
15 Some errors have detailed explanations: E0599, E0609.
16 For more information about an error, try `rustc --explain E0599`.