]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pattern-tyvar-2.rs
Auto merge of #106981 - joboet:std_remove_box_syntax, r=thomcc
[rust.git] / tests / ui / pattern / pattern-tyvar-2.rs
1 enum Bar { T1((), Option<Vec<isize>>), T2, }
2
3 fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
4 //~^ ERROR cannot multiply `Vec<isize>` by `{integer}`
5
6 fn main() { }