rust/tests/ui/dst/dst-index.stderr

29 lines
892 B
Plaintext
Raw Normal View History

error[E0161]: cannot move a value of type `str`
2018-12-25 09:56:47 -06:00
--> $DIR/dst-index.rs:31:5
2018-08-08 07:28:26 -05:00
|
LL | S[0];
| ^^^^ the size of `str` cannot be statically determined
2018-08-08 07:28:26 -05:00
error[E0161]: cannot move a value of type `dyn Debug`
2018-12-25 09:56:47 -06:00
--> $DIR/dst-index.rs:34:5
2018-08-08 07:28:26 -05:00
|
LL | T[0];
| ^^^^ the size of `dyn Debug` cannot be statically determined
2018-08-08 07:28:26 -05:00
error[E0507]: cannot move out of index of `S`
2018-12-25 09:56:47 -06:00
--> $DIR/dst-index.rs:31:5
2018-08-08 07:28:26 -05:00
|
LL | S[0];
| ^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait
2018-08-08 07:28:26 -05:00
error[E0507]: cannot move out of index of `T`
2018-12-25 09:56:47 -06:00
--> $DIR/dst-index.rs:34:5
2018-08-08 07:28:26 -05:00
|
LL | T[0];
| ^^^^ move occurs because value has type `dyn Debug`, which does not implement the `Copy` trait
2018-08-08 07:28:26 -05:00
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0161, E0507.
2018-08-08 07:28:26 -05:00
For more information about an error, try `rustc --explain E0161`.