Skip to content

Commit 0253f86

Browse files
committed
move_ref_pattern: adjust error index
1 parent d984f12 commit 0253f86

File tree

1 file changed

+5
-1
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+5
-1
lines changed

Diff for: src/librustc_error_codes/error_codes/E0009.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
In a pattern, all values that don't implement the `Copy` trait have to be bound
24
the same way. The goal here is to avoid binding simultaneously by-move and
35
by-ref.
@@ -6,7 +8,9 @@ This limitation may be removed in a future version of Rust.
68

79
Erroneous code example:
810

9-
```compile_fail,E0009
11+
```
12+
#![feature(move_ref_pattern)]
13+
1014
struct X { x: (), }
1115
1216
let x = Some((X { x: () }, X { x: () }));

0 commit comments

Comments
 (0)