Skip to content

Conversation

@chahar-ritik
Copy link
Contributor

Problem

The E0423 error explanation did not include an example for enum types being used
as values, which is a common source of confusion for users.

For example, the following code:

fn main() {
    let x = Option::<i32>;
}

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 31, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 31, 2026

r? @nnethercote

rustbot has assigned @nnethercote.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rust-log-analyzer

This comment has been minimized.

@Kivooeo
Copy link
Member

Kivooeo commented Jan 31, 2026

r? me

@bors r+ rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 31, 2026

📌 Commit daaff44 has been approved by Kivooeo

It is now in the queue for this repository.

@rust-bors rust-bors bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jan 31, 2026
@rust-bors rust-bors bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 31, 2026
@chahar-ritik
Copy link
Contributor Author

chahar-ritik commented Jan 31, 2026

Thanks for reviewing, @Kivooeo I’ll wait for Bors to merge.

rust-bors bot pushed a commit that referenced this pull request Jan 31, 2026
Rollup of 4 pull requests

Successful merges:

 - #151262 (Introducing clap on tidy)
 - #151896 (Revert enabling `outline-atomics` on various platforms)
 - #151849 (refactor: remove `Ty::pinned_ref` in favor of `Ty::maybe_pinned_ref`)
 - #151892 (Document enum types used as values for E0423)
@rust-bors rust-bors bot merged commit 72f163c into rust-lang:main Jan 31, 2026
11 checks passed
rust-timer added a commit that referenced this pull request Jan 31, 2026
Rollup merge of #151892 - chahar-ritik:e0423-enum-doc, r=Kivooeo

Document enum types used as values for E0423

### Problem

The E0423 error explanation did not include an example for enum types being used
as values, which is a common source of confusion for users.

For example, the following code:

```rust
fn main() {
    let x = Option::<i32>;
}
```
@rustbot rustbot added this to the 1.95.0 milestone Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants