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