2025-07-24 17:22:54 +05:00
|
|
|
//! Regression test for https://github.com/rust-lang/rust/issues/12285
|
|
|
|
|
|
2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2014-07-03 22:53:20 +02:00
|
|
|
struct S;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
match Some(&S) {
|
|
|
|
|
Some(&S) => {},
|
|
|
|
|
_x => unreachable!()
|
|
|
|
|
}
|
|
|
|
|
match Some(&S) {
|
|
|
|
|
Some(&S) => {},
|
|
|
|
|
None => unreachable!()
|
|
|
|
|
}
|
|
|
|
|
}
|