]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/pattern-tyvar-2.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / pattern / pattern-tyvar-2.rs
CommitLineData
0731742a 1enum Bar { T1((), Option<Vec<isize>>), T2, }
223e47cc 2
0731742a 3fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
1b1a35ee 4//~^ ERROR cannot multiply `{integer}` to `Vec<isize>`
223e47cc
LB
5
6fn main() { }