We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d984f12 commit 0253f86Copy full SHA for 0253f86
src/librustc_error_codes/error_codes/E0009.md
@@ -1,3 +1,5 @@
1
+#### Note: this error code is no longer emitted by the compiler.
2
+
3
In a pattern, all values that don't implement the `Copy` trait have to be bound
4
the same way. The goal here is to avoid binding simultaneously by-move and
5
by-ref.
@@ -6,7 +8,9 @@ This limitation may be removed in a future version of Rust.
6
8
7
9
Erroneous code example:
10
-```compile_fail,E0009
11
+```
12
+#![feature(move_ref_pattern)]
13
14
struct X { x: (), }
15
16
let x = Some((X { x: () }, X { x: () }));
0 commit comments