]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unique/unique-pat-3.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / unique / unique-pat-3.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
b7449926
XL
3#![allow(non_camel_case_types)]
4
c34b1796 5enum bar { u(Box<isize>), w(isize), }
223e47cc
LB
6
7pub fn main() {
c295e0f8
XL
8 let v = match bar::u(10.into()) {
9 bar::u(a) => {
10 println!("{}", a);
11 *a
12 }
13 _ => { 66 }
14 };
15 assert_eq!(v, 10);
223e47cc 16}