Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
51b51b51d7931da85280382a81c4dd80c73ca754
rust/tests/ui/feature-gates/feature-gate-exhaustive-patterns.rs

10 lines
153 B
Rust
Raw Normal View History

Revert "Remove `#![feature(never_type)]` from tests." This reverts commit 8f6197f39f7d468dfc5b2bd41dae4769992a2f83.
2019-12-11 09:51:28 -05:00
#![feature(never_type)]
stabilise feature(never_type) Replace feature(never_type) with feature(exhaustive_patterns). feature(exhaustive_patterns) only covers the pattern-exhaustives checks that used to be covered by feature(never_type)
2018-01-21 16:44:41 +08:00
fn foo() -> Result<u32, !> {
Ok(123)
}
check_match: don't treat privately uninhabited types as uninhabited Fixes #38972.
2017-02-20 19:18:31 +02:00
fn main() {
Update tests
2024-07-27 11:08:16 +02:00
let Ok(_x) = &foo(); //~ ERROR refutable pattern in local binding
check_match: don't treat privately uninhabited types as uninhabited Fixes #38972.
2017-02-20 19:18:31 +02:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3991ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API