]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pattern-tyvar-2.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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() { }