]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-out-from-array.stderr
slice_patterns: remove gates in tests
[rust.git] / src / test / ui / borrowck / borrowck-move-out-from-array.stderr
1 error[E0382]: use of moved value: `a[..]`
2   --> $DIR/borrowck-move-out-from-array.rs:10:14
3    |
4 LL |     let [_, _, _x] = a;
5    |                -- value moved here
6 LL |     let [.., _y] = a;
7    |              ^^ value used here after move
8    |
9    = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `a[..]`
12   --> $DIR/borrowck-move-out-from-array.rs:16:14
13    |
14 LL |     let [_, _, (_x, _)] = a;
15    |                 -- value moved here
16 LL |     let [.., _y] = a;
17    |              ^^ value used here after partial move
18    |
19    = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
20
21 error[E0382]: use of moved value: `a[..].0`
22   --> $DIR/borrowck-move-out-from-array.rs:22:15
23    |
24 LL |     let [_, _, (_x, _)] = a;
25    |                 -- value moved here
26 LL |     let [.., (_y, _)] = a;
27    |               ^^ value used here after move
28    |
29    = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
30
31 error[E0382]: use of moved value: `a`
32   --> $DIR/borrowck-move-out-from-array.rs:30:10
33    |
34 LL |     let [_x, _, _] = a;
35    |          -- value moved here
36 LL |     let [_y @ .., _, _] = a;
37    |          ^^^^^^^ value used here after partial move
38    |
39    = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
40
41 error[E0382]: use of moved value: `a`
42   --> $DIR/borrowck-move-out-from-array.rs:36:16
43    |
44 LL |     let [.., _x] = a;
45    |              -- value moved here
46 LL |     let [_, _, _y @ ..] = a;
47    |                ^^^^^^^ value used here after partial move
48    |
49    = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
50
51 error[E0382]: use of moved value: `a`
52   --> $DIR/borrowck-move-out-from-array.rs:42:10
53    |
54 LL |     let [(_x, _), _, _] = a;
55    |           -- value moved here
56 LL |     let [_y @ .., _, _] = a;
57    |          ^^^^^^^ value used here after partial move
58    |
59    = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
60
61 error[E0382]: use of moved value: `a`
62   --> $DIR/borrowck-move-out-from-array.rs:48:16
63    |
64 LL |     let [.., (_x, _)] = a;
65    |               -- value moved here
66 LL |     let [_, _, _y @ ..] = a;
67    |                ^^^^^^^ value used here after partial move
68    |
69    = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
70
71 error[E0382]: use of moved value: `a[..].0`
72   --> $DIR/borrowck-move-out-from-array.rs:54:11
73    |
74 LL |     let [_y @ .., _, _] = a;
75    |          ------- value moved here
76 LL |     let [(_x, _), _, _] = a;
77    |           ^^ value used here after move
78    |
79    = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
80
81 error[E0382]: use of moved value: `a[..].0`
82   --> $DIR/borrowck-move-out-from-array.rs:60:15
83    |
84 LL |     let [_, _, _y @ ..] = a;
85    |                ------- value moved here
86 LL |     let [.., (_x, _)] = a;
87    |               ^^ value used here after move
88    |
89    = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
90
91 error[E0382]: use of moved value: `a`
92   --> $DIR/borrowck-move-out-from-array.rs:68:13
93    |
94 LL |     let [x @ .., _] = a;
95    |          ------ value moved here
96 LL |     let [_, _y @ ..] = a;
97    |             ^^^^^^^ value used here after partial move
98    |
99    = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
100
101 error: aborting due to 10 previous errors
102
103 For more information about this error, try `rustc --explain E0382`.