]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-type-err-formal-param.rs
check_match: unify some lowering code and fix some ICEs
[rust.git] / src / test / ui / pattern / pat-type-err-formal-param.rs
1 // Test the `.span_label(..)` to the type when there's a
2 // type error in a pattern due to a the formal parameter.
3
4 fn main() {}
5
6 struct Tuple(u8);
7
8 fn foo(Tuple(_): String) {} //~ ERROR mismatched types