mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
310 B
Rust
16 lines
310 B
Rust
// Regression test for #15896. It used to ICE rustc.
|
|
|
|
fn main() {
|
|
enum R { REB(()) }
|
|
struct Tau { t: usize }
|
|
enum E { B(R, Tau) }
|
|
|
|
let e = E::B(R::REB(()), Tau { t: 3 });
|
|
let u = match e {
|
|
E::B(
|
|
Tau{t: x},
|
|
//~^ ERROR mismatched types
|
|
_) => x,
|
|
};
|
|
}
|