summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/pat-type-err-formal-param.rs
blob: 54336b3492321f5459ae1fd797c44a563dbc2d13 (plain)
1
2
3
4
5
6
7
8
// 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