]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-96738.stderr
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / ui / typeck / issue-96738.stderr
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
3    |
4 LL |     Some.nonexistent_method();
5    |          ^^^^^^^^^^^^^^^^^^ method not found in `fn(_) -> Option<_> {Option::<_>::Some}`
6
7 error[E0609]: no field `nonexistent_field` on type `fn(_) -> Option<_> {Option::<_>::Some}`
8   --> $DIR/issue-96738.rs:3:10
9    |
10 LL |     Some.nonexistent_field;
11    |          ^^^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 Some errors have detailed explanations: E0599, E0609.
16 For more information about an error, try `rustc --explain E0599`.