move_ref_pattern: adjust error index

This commit is contained in:
Mazdak Farrokhzad
2020-01-20 11:03:30 +01:00
parent d984f127f6
commit 0253f868ca
@@ -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: () }));