Skip to content

never ! type primitive docs mention 2024 edition changes as upcoming #143207

Open
@Alexendoo

Description

@Alexendoo

Location

https://doc.rust-lang.org/nightly/std/primitive.never.html#never-type-fallback

Summary

In the last parapgraph mentions changes that I believe have now been made

Historically, the fallback type was (), causing confusing behavior where ! spontaneously coerced to (), even when it would not infer () without the fallback. There are plans to change it in the 2024 edition (and possibly in all editions on a later date); see Tracking Issue for making ! fall back to !.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsneeds-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions