Move dynamically-sized-types tests into dst dir

This commit is contained in:
reddevilmidzy 2026-02-08 12:28:18 +00:00
parent 56aaf58ec0
commit abca0d5f74
16 changed files with 4 additions and 8 deletions

View file

@ -518,10 +518,6 @@ The `dyn` keyword is used to highlight that calls to methods on the associated T
See [`dyn` keyword](https://doc.rust-lang.org/std/keyword.dyn.html).
## `tests/ui/dynamically-sized-types`: Dynamically Sized Types
**FIXME**: should be coalesced with `tests/ui/dst`.
## `tests/ui/editions/`: Rust edition-specific peculiarities
These tests run in specific Rust editions, such as Rust 2015 or Rust 2018, and check errors and functionality related to specific now-deprecated idioms and features.

View file

@ -1,23 +1,23 @@
error[E0161]: cannot move a value of type `str`
--> $DIR/dst-index.rs:31:5
--> $DIR/dst-index-fail.rs:31:5
|
LL | S[0];
| ^^^^ the size of `str` cannot be statically determined
error[E0161]: cannot move a value of type `dyn Debug`
--> $DIR/dst-index.rs:34:5
--> $DIR/dst-index-fail.rs:34:5
|
LL | T[0];
| ^^^^ the size of `dyn Debug` cannot be statically determined
error[E0507]: cannot move out of index of `S`
--> $DIR/dst-index.rs:31:5
--> $DIR/dst-index-fail.rs:31:5
|
LL | S[0];
| ^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait
error[E0507]: cannot move out of index of `T`
--> $DIR/dst-index.rs:34:5
--> $DIR/dst-index-fail.rs:34:5
|
LL | T[0];
| ^^^^ move occurs because value has type `dyn Debug`, which does not implement the `Copy` trait