|
| 1 | +error[E0425]: cannot find value `_y` in this scope |
| 2 | + --> $DIR/issue-105946.rs:6:10 |
| 3 | + | |
| 4 | +LL | let [_y..] = [box 1, box 2]; |
| 5 | + | ^^ not found in this scope |
| 6 | + |
| 7 | +error[E0658]: `X..` patterns in slices are experimental |
| 8 | + --> $DIR/issue-105946.rs:6:10 |
| 9 | + | |
| 10 | +LL | let [_y..] = [box 1, box 2]; |
| 11 | + | ^^^^ |
| 12 | + | |
| 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 |
| 15 | + |
| 16 | +error[E0658]: box expression syntax is experimental; you can call `Box::new` instead |
| 17 | + --> $DIR/issue-105946.rs:6:19 |
| 18 | + | |
| 19 | +LL | let [_y..] = [box 1, box 2]; |
| 20 | + | ^^^^^ |
| 21 | + | |
| 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 |
| 24 | + |
| 25 | +error[E0658]: box expression syntax is experimental; you can call `Box::new` instead |
| 26 | + --> $DIR/issue-105946.rs:6:26 |
| 27 | + | |
| 28 | +LL | let [_y..] = [box 1, box 2]; |
| 29 | + | ^^^^^ |
| 30 | + | |
| 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 |
| 33 | + |
| 34 | +error[E0308]: mismatched types |
| 35 | + --> $DIR/issue-105946.rs:2:10 |
| 36 | + | |
| 37 | +LL | return {}; |
| 38 | + | ^^ expected `str`, found `()` |
| 39 | + |
| 40 | +error[E0527]: pattern requires 1 element but array has 2 |
| 41 | + --> $DIR/issue-105946.rs:6:9 |
| 42 | + | |
| 43 | +LL | let [_y..] = [box 1, box 2]; |
| 44 | + | ^^^^^^ expected 2 elements |
| 45 | + |
| 46 | +error: aborting due to 6 previous errors |
| 47 | + |
| 48 | +Some errors have detailed explanations: E0308, E0425, E0527, E0658. |
| 49 | +For more information about an error, try `rustc --explain E0308`. |
0 commit comments