Skip to content

Commit

Permalink
move_ref_pattern: adjust error index
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 2, 2020
1 parent d984f12 commit 0253f86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustc_error_codes/error_codes/E0009.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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: () }));
Expand Down

0 comments on commit 0253f86

Please sign in to comment.