]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pattern-tyvar-2.rs
Rollup merge of #107111 - chenyukang:yukang/fix-107090-fluent-parameters, r=petrochenkov
[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() { }