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