]> git.lizzy.rs Git - rust.git/commitdiff
move_ref_pattern: adjust error index
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 20 Jan 2020 10:03:30 +0000 (11:03 +0100)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sun, 2 Feb 2020 13:13:07 +0000 (14:13 +0100)
src/librustc_error_codes/error_codes/E0009.md

index abb7fe41ab7a29e1889ceb6f1d9ebf1935fcff5a..aaabba0434993e6dda9c58e82d3c2d00468f4a21 100644 (file)
@@ -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: () }));