about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-01-20 11:03:30 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-02-02 14:13:07 +0100
commit0253f868cab2c5be84d354589b4b833aedbc9987 (patch)
tree1d142fd9a287cb64427371190f87c3d527edb1db
parentd984f127f662f7a1fcf0472230a1b64fcc3325d5 (diff)
downloadrust-0253f868cab2c5be84d354589b4b833aedbc9987.tar.gz
rust-0253f868cab2c5be84d354589b4b833aedbc9987.zip
move_ref_pattern: adjust error index
-rw-r--r--src/librustc_error_codes/error_codes/E0009.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librustc_error_codes/error_codes/E0009.md b/src/librustc_error_codes/error_codes/E0009.md
index abb7fe41ab7..aaabba04349 100644
--- a/src/librustc_error_codes/error_codes/E0009.md
+++ b/src/librustc_error_codes/error_codes/E0009.md
@@ -1,3 +1,5 @@
+#### Note: this error code is no longer emitted by the compiler.
+
 In a pattern, all values that don't implement the `Copy` trait have to be bound
 the same way. The goal here is to avoid binding simultaneously by-move and
 by-ref.
@@ -6,7 +8,9 @@ This limitation may be removed in a future version of Rust.
 
 Erroneous code example:
 
-```compile_fail,E0009
+```
+#![feature(move_ref_pattern)]
+
 struct X { x: (), }
 
 let x = Some((X { x: () }, X { x: () }));