diff options
Diffstat (limited to 'tests/ui/pattern/pattern-ident-path-generics.rs')
-rw-r--r-- | tests/ui/pattern/pattern-ident-path-generics.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/pattern/pattern-ident-path-generics.rs b/tests/ui/pattern/pattern-ident-path-generics.rs new file mode 100644 index 000000000..48c02623f --- /dev/null +++ b/tests/ui/pattern/pattern-ident-path-generics.rs @@ -0,0 +1,6 @@ +fn main() { + match Some("foo") { + None::<isize> => {} //~ ERROR mismatched types + Some(_) => {} + } +} |