]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dst/dst-index.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / dst / dst-index.stderr
1 error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
2   --> $DIR/dst-index.rs:31:5
3    |
4 LL |     S[0];
5    |     ^^^^
6
7 error[E0161]: cannot move a value of type dyn std::fmt::Debug: the size of dyn std::fmt::Debug cannot be statically determined
8   --> $DIR/dst-index.rs:34:5
9    |
10 LL |     T[0];
11    |     ^^^^
12
13 error[E0507]: cannot move out of index of `S`
14   --> $DIR/dst-index.rs:31:5
15    |
16 LL |     S[0];
17    |     ^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait
18
19 error[E0507]: cannot move out of index of `T`
20   --> $DIR/dst-index.rs:34:5
21    |
22 LL |     T[0];
23    |     ^^^^ move occurs because value has type `dyn std::fmt::Debug`, which does not implement the `Copy` trait
24
25 error: aborting due to 4 previous errors
26
27 Some errors have detailed explanations: E0161, E0507.
28 For more information about an error, try `rustc --explain E0161`.