mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
9 lines
204 B
Rust
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
|