]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-96738.stderr
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
[rust.git] / src / test / ui / typeck / issue-96738.stderr
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
3    |
4 LL |     Some.nonexistent_method();
5    |     ---- ^^^^^^^^^^^^^^^^^^ method not found in `fn(_) -> Option<_> {Option::<_>::Some}`
6    |     |
7    |     this is the constructor of an enum variant
8    |
9 help: call the constructor
10    |
11 LL |     (Some)(_).nonexistent_method();
12    |     +    ++++
13
14 error[E0609]: no field `nonexistent_field` on type `fn(_) -> Option<_> {Option::<_>::Some}`
15   --> $DIR/issue-96738.rs:3:10
16    |
17 LL |     Some.nonexistent_field;
18    |     ---- ^^^^^^^^^^^^^^^^^
19    |     |
20    |     this is the constructor of an enum variant
21    |
22 help: call the constructor
23    |
24 LL |     (Some)(_).nonexistent_field;
25    |     +    ++++
26
27 error: aborting due to 2 previous errors
28
29 Some errors have detailed explanations: E0599, E0609.
30 For more information about an error, try `rustc --explain E0599`.