mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-06 01:38:35 +00:00
never_patterns: Count `!` bindings as diverging
A binding that is a never pattern is not reachable, hence counts as diverging code. This allows in particular `fn foo(!: Void) -> SomeType {}` to typecheck.
r? ``@compiler-errors``