about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-02-09 04:01:28 +0000
committerbors <bors@rust-lang.org>2020-02-09 04:01:28 +0000
commitf8d830b4decaef5a6ae0f27baac14dfb48baa4c5 (patch)
treea5e7a6a7f68e12dbd174c1313b4d0ab0e742dbdc /src/test/ui/error-codes
parenta19edd6b161521a4f66716b3b45b8cf4d3f03f3a (diff)
parentd2b88b7050b0e21b136022c4cfe8d352c1425588 (diff)
downloadrust-f8d830b4decaef5a6ae0f27baac14dfb48baa4c5.tar.gz
rust-f8d830b4decaef5a6ae0f27baac14dfb48baa4c5.zip
Auto merge of #68376 - Centril:move-ref-patterns, r=matthewjasper
Initial implementation of `#![feature(move_ref_pattern)]`

Following up on #45600, under the gate `#![feature(move_ref_pattern)]`, `(ref x, mut y)` is allowed subject to restrictions necessary for soundness. The match checking implementation and tests for `#![feature(bindings_after_at)]` is also adjusted as necessary.

Closes #45600.
Tracking issue: #68354.

r? @matthewjasper
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`.