Skip to content

not clear what "base expression" is #106890

Closed
@matthiaskrgr

Description

@matthiaskrgr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsD-newcomer-roadblockDiagnostics: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions