mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
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`.
|