fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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