mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
13 lines
236 B
Rust
13 lines
236 B
Rust
// https://github.com/rust-lang/rust/issues/6117
|
|
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
enum Either<T, U> { Left(T), Right(U) }
|
|
|
|
pub fn main() {
|
|
match Either::Left(Box::new(17)) {
|
|
Either::Right(()) => {}
|
|
_ => {}
|
|
}
|
|
}
|