mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 15:13:48 +00:00
7 lines
216 B
Rust
7 lines
216 B
Rust
enum Bar { T1((), Option<Vec<isize>>), T2, }
|
|
|
|
fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
|
|
//~^ ERROR cannot multiply `Vec<isize>` by `{integer}`
|
|
|
|
fn main() { }
|