diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2021-05-27 14:36:45 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2021-06-03 20:49:33 -0700 |
| commit | 43bad44ff01dd5035b961b366e65f705241b428d (patch) | |
| tree | 502fd4b70c3a71c2102b7cfda8d9a10c1ed9b0de /src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr | |
| parent | 45d9dd69a7724986f1b80cf9462323b48d4e2529 (diff) | |
| download | rust-43bad44ff01dd5035b961b366e65f705241b428d.tar.gz rust-43bad44ff01dd5035b961b366e65f705241b428d.zip | |
Reestablish feature gate for RangeFrom in slices
Diffstat (limited to 'src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr')
| -rw-r--r-- | src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr b/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr new file mode 100644 index 00000000000..ec3472a5036 --- /dev/null +++ b/src/test/ui/half-open-range-patterns/slice_pattern_syntax_problem0.stderr @@ -0,0 +1,9 @@ +error[E0527]: pattern requires 2 elements but array has 8 + --> $DIR/slice_pattern_syntax_problem0.rs:11:9 + | +LL | let [first_three @ ..3, rest @ 2..] = xs; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 8 elements + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0527`. |
