blob: 7b395066166b71457fff02b7f4c06766fd0ca797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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(()) => {}
_ => {}
}
}
|