mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
042cc7269c
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``