about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-01-19 02:47:01 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-02-02 14:13:07 +0100
commitd984f127f662f7a1fcf0472230a1b64fcc3325d5 (patch)
tree35a1694fb4c49d0c43a8da13f74c9ed94eeab7d2 /src/test/ui/error-codes
parent7af9ff3e699207da7a5220b98ba9831d66697c80 (diff)
downloadrust-d984f127f662f7a1fcf0472230a1b64fcc3325d5.tar.gz
rust-d984f127f662f7a1fcf0472230a1b64fcc3325d5.zip
move_ref_patterns: introduce tests
bindings_after_at: harden tests
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0009.rs9
-rw-r--r--src/test/ui/error-codes/E0009.stderr11
2 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/error-codes/E0009.rs b/src/test/ui/error-codes/E0009.rs
deleted file mode 100644
index 0610d03cfe9..00000000000
--- a/src/test/ui/error-codes/E0009.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-fn main() {
-    struct X { x: (), }
-    let x = Some((X { x: () }, X { x: () }));
-    match x {
-        Some((y, ref z)) => {},
-        //~^ ERROR E0009
-        None => panic!()
-    }
-}
diff --git a/src/test/ui/error-codes/E0009.stderr b/src/test/ui/error-codes/E0009.stderr
deleted file mode 100644
index 446a436d647..00000000000
--- a/src/test/ui/error-codes/E0009.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0009]: cannot bind by-move and by-ref in the same pattern
-  --> $DIR/E0009.rs:5:15
-   |
-LL |         Some((y, ref z)) => {},
-   |               ^  ----- by-ref pattern here
-   |               |
-   |               by-move pattern here
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0009`.