]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-type-err-formal-param.rs
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
[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