blob: 207194611c521401a0ef22ec5860fb7b618ef7ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
error[E0277]: the size for values of type `[A]` cannot be known at compilation time
--> $DIR/move-out-of-slice-2.rs:10:10
|
LL | [a @ ..] => {}
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[A]`
= note: all local variables must have a statically known size
error[E0277]: the size for values of type `[A]` cannot be known at compilation time
--> $DIR/move-out-of-slice-2.rs:15:16
|
LL | [_, _, b @ .., _] => {}
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[A]`
= note: all local variables must have a statically known size
error[E0277]: the size for values of type `[C]` cannot be known at compilation time
--> $DIR/move-out-of-slice-2.rs:22:10
|
LL | [c @ ..] => {}
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[C]`
= note: all local variables must have a statically known size
error[E0277]: the size for values of type `[C]` cannot be known at compilation time
--> $DIR/move-out-of-slice-2.rs:27:16
|
LL | [_, _, d @ .., _] => {}
| ^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[C]`
= note: all local variables must have a statically known size
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0277`.
|