]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pat-type-err-formal-param.rs
Rollup merge of #106917 - compiler-errors:const-closure-foreign, r=tmiasko
[rust.git] / tests / 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