rust/tests/ui/pattern/pat-type-err-formal-param.rs
2023-01-11 09:32:08 +00:00

9 lines
204 B
Rust

// Test the `.span_label(..)` to the type when there's a
// type error in a pattern due to a the formal parameter.
fn main() {}
struct Tuple(u8);
fn foo(Tuple(_): String) {} //~ ERROR mismatched types