diff options
Diffstat (limited to 'tests/ui/deref-patterns/gate.rs')
-rw-r--r-- | tests/ui/deref-patterns/gate.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/deref-patterns/gate.rs b/tests/ui/deref-patterns/gate.rs new file mode 100644 index 000000000..ff50e30de --- /dev/null +++ b/tests/ui/deref-patterns/gate.rs @@ -0,0 +1,7 @@ +// gate-test-string_deref_patterns +fn main() { + match String::new() { + "" | _ => {} + //~^ mismatched types + } +} |