-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-newcomer-roadblockDiagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: Confusing error or lint; hard to understand for new users.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
Code
struct Struct<S, T> {
a: S,
b: T,
}
fn main() {
Struct { .. };
}
Current output
error: base expression required after `..`
--> src/lib.rs:7:16
|
7 | Struct { .. };
| ^ add a base expression here
Desired output
No response
Rationale and extra context
rustc does not explain what it actually mean with "base expression".
Unfortunately there also is no error number so we can't look this up with --explain
Other cases
No response
Anything else?
No response
alexhudspith
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-newcomer-roadblockDiagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: Confusing error or lint; hard to understand for new users.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.