-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`Area: Suggestions generated by the compiler applied by `cargo fix`C-bugCategory: This is a bug.Category: This is a bug.D-incorrectDiagnostics: A diagnostic that is giving misleading or incorrect information.Diagnostics: A diagnostic that is giving misleading or incorrect information.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
rust/src/test/ui/type/ascription/issue-47666.stderr
Lines 16 to 27 in 02046a5
error[E0423]: expected value, found enum `Option` | |
--> $DIR/issue-47666.rs:2:13 | |
| | |
LL | let _ = Option:Some(vec![0, 1]); | |
| ^^^^^^ | |
| | |
help: try using one of the enum's variants | |
| | |
LL | let _ = std::option::Option::None:Some(vec![0, 1]); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
LL | let _ = std::option::Option::Some:Some(vec![0, 1]); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ |
rust/src/test/ui/type/ascription/issue-47666.stderr
Lines 29 to 43 in 02046a5
error[E0573]: expected type, found variant `Some` | |
--> $DIR/issue-47666.rs:2:20 | |
| | |
LL | let _ = Option:Some(vec![0, 1]); | |
| ^^^^^^^^^^^^^^^^ not a type | |
| | |
help: try using the variant's enum | |
| | |
LL | let _ = Option:std::option::Option; | |
| ^^^^^^^^^^^^^^^^^^^ | |
help: maybe you meant to write a path separator here | |
| | |
LL | let _ = Option::Some(vec![0, 1]); | |
| ^^ | |
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`Area: Suggestions generated by the compiler applied by `cargo fix`C-bugCategory: This is a bug.Category: This is a bug.D-incorrectDiagnostics: A diagnostic that is giving misleading or incorrect information.Diagnostics: A diagnostic that is giving misleading or incorrect information.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.