mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
17 lines
273 B
Rust
17 lines
273 B
Rust
//! Regression test for https://github.com/rust-lang/rust/issues/12285
|
|
|
|
//@ run-pass
|
|
|
|
struct S;
|
|
|
|
fn main() {
|
|
match Some(&S) {
|
|
Some(&S) => {},
|
|
_x => unreachable!()
|
|
}
|
|
match Some(&S) {
|
|
Some(&S) => {},
|
|
None => unreachable!()
|
|
}
|
|
}
|