]> git.proxmox.com Git - rustc.git/blob - src/test/run-pass/issues/issue-6117.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / issues / issue-6117.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 enum Either<T, U> { Left(T), Right(U) }
6
7 pub fn main() {
8 match Either::Left(Box::new(17)) {
9 Either::Right(()) => {}
10 _ => {}
11 }
12 }