|
| 1 | +error[E0282]: type annotations needed |
| 2 | + --> $DIR/slice-pattern-refutable.rs:12:9 |
| 3 | + | |
| 4 | +LL | let [a, b, c] = Zeroes.into() else { |
| 5 | + | ^^^^^^^^^ |
| 6 | + | |
| 7 | +help: consider giving this pattern a type |
| 8 | + | |
| 9 | +LL | let [a, b, c]: /* Type */ = Zeroes.into() else { |
| 10 | + | ++++++++++++ |
| 11 | + |
| 12 | +error[E0282]: type annotations needed |
| 13 | + --> $DIR/slice-pattern-refutable.rs:19:31 |
| 14 | + | |
| 15 | +LL | if let [a, b, c] = Zeroes.into() { |
| 16 | + | --------- ^^^^ |
| 17 | + | | |
| 18 | + | type must be known at this point |
| 19 | + | |
| 20 | +help: try using a fully qualified path to specify the expected types |
| 21 | + | |
| 22 | +LL | if let [a, b, c] = <Zeroes as Into<T>>::into(Zeroes) { |
| 23 | + | ++++++++++++++++++++++++++ ~ |
| 24 | + |
| 25 | +error[E0282]: type annotations needed |
| 26 | + --> $DIR/slice-pattern-refutable.rs:26:31 |
| 27 | + | |
| 28 | +LL | if let [a, b, c] = Zeroes.into() { |
| 29 | + | --------- ^^^^ |
| 30 | + | | |
| 31 | + | type must be known at this point |
| 32 | + | |
| 33 | +help: try using a fully qualified path to specify the expected types |
| 34 | + | |
| 35 | +LL | if let [a, b, c] = <Zeroes as Into<T>>::into(Zeroes) { |
| 36 | + | ++++++++++++++++++++++++++ ~ |
| 37 | + |
| 38 | +error: aborting due to 3 previous errors |
| 39 | + |
| 40 | +For more information about this error, try `rustc --explain E0282`. |
0 commit comments