2018-12-16 22:21:47 -05:00
|
|
|
enum Bar { T1((), Option<Vec<isize>>), T2, }
|
2011-05-14 19:03:08 -07:00
|
|
|
|
2018-12-16 22:21:47 -05:00
|
|
|
fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
|
2019-12-11 23:11:32 +01:00
|
|
|
//~^ ERROR cannot multiply `{integer}` to `std::vec::Vec<isize>`
|
2011-05-14 19:03:08 -07:00
|
|
|
|
2011-08-10 09:27:22 -07:00
|
|
|
fn main() { }
|