summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2005-default-binding-mode/lit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2005-default-binding-mode/lit.rs')
-rw-r--r--tests/ui/rfc-2005-default-binding-mode/lit.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/ui/rfc-2005-default-binding-mode/lit.rs b/tests/ui/rfc-2005-default-binding-mode/lit.rs
deleted file mode 100644
index ce79cfbdc..000000000
--- a/tests/ui/rfc-2005-default-binding-mode/lit.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-// FIXME(tschottdorf): we want these to compile, but they don't.
-
-fn with_str() {
- let s: &'static str = "abc";
-
- match &s {
- "abc" => true, //~ ERROR mismatched types
- _ => panic!(),
- };
-}
-
-fn with_bytes() {
- let s: &'static [u8] = b"abc";
-
- match &s {
- b"abc" => true, //~ ERROR mismatched types
- _ => panic!(),
- };
-}
-
-pub fn main() {
- with_str();
- with_bytes();
-}