]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pat-type-err-formal-param.rs
Rollup merge of #107131 - notriddle:notriddle/rustdoc-radio-display-inline-flex,...
[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