0731742a |
1 | enum Bar { T1((), Option<Vec<isize>>), T2, } |
223e47cc |
2 | |
0731742a |
3 | fn 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 | |
6 | fn main() { } |