1 error[E0425]: cannot find value `_y` in this scope
2 --> $DIR/issue-105946.rs:6:10
4 LL | let [_y..] = [box 1, box 2];
5 | ^^ not found in this scope
7 error[E0658]: `X..` patterns in slices are experimental
8 --> $DIR/issue-105946.rs:6:10
10 LL | let [_y..] = [box 1, box 2];
13 = note: see issue #67264 <https://github.com/rust-lang/rust/issues/67264> for more information
14 = help: add `#![feature(half_open_range_patterns_in_slices)]` to the crate attributes to enable
16 error[E0658]: box expression syntax is experimental; you can call `Box::new` instead
17 --> $DIR/issue-105946.rs:6:19
19 LL | let [_y..] = [box 1, box 2];
22 = note: see issue #49733 <https://github.com/rust-lang/rust/issues/49733> for more information
23 = help: add `#![feature(box_syntax)]` to the crate attributes to enable
25 error[E0658]: box expression syntax is experimental; you can call `Box::new` instead
26 --> $DIR/issue-105946.rs:6:26
28 LL | let [_y..] = [box 1, box 2];
31 = note: see issue #49733 <https://github.com/rust-lang/rust/issues/49733> for more information
32 = help: add `#![feature(box_syntax)]` to the crate attributes to enable
34 error[E0308]: mismatched types
35 --> $DIR/issue-105946.rs:2:10
38 | ^^ expected `str`, found `()`
40 error[E0527]: pattern requires 1 element but array has 2
41 --> $DIR/issue-105946.rs:6:9
43 LL | let [_y..] = [box 1, box 2];
44 | ^^^^^^ expected 2 elements
46 error: aborting due to 6 previous errors
48 Some errors have detailed explanations: E0308, E0425, E0527, E0658.
49 For more information about an error, try `rustc --explain E0308`.