]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dst/dst-rvalue.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / dst / dst-rvalue.stderr
1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2   --> $DIR/dst-rvalue.rs:6:28
3    |
4 LL |     let _x: Box<str> = box *"hello world";
5    |                            ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `str`
8    = note: the type of a box expression must have a statically known size
9
10 error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
11   --> $DIR/dst-rvalue.rs:10:32
12    |
13 LL |     let _x: Box<[isize]> = box *array;
14    |                                ^^^^^^ doesn't have a size known at compile-time
15    |
16    = help: the trait `Sized` is not implemented for `[isize]`
17    = note: the type of a box expression must have a statically known size
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0277`.