Skip to content

Book: explain statically checked unreachable #87

Open
@SuperFluffy

Description

@SuperFluffy

The current version of the Handling Disconnects section of the book states:

In the shutdown case we use match void {} as a statically-checked unreachable!().

Please explain the significance of this statement. In how far is this a statically checked version of unreachable!?

This is the first time I am encountering this pattern and I am confused by the statement.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions