fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB27 linesraw
1error[E0277]: the size for values of type `str` cannot be known at compilation time
2  --> $DIR/dst-rvalue.rs:4:33
3   |
4LL |     let _x: Box<str> = Box::new(*"hello world");
5   |                        -------- ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6   |                        |
7   |                        required by a bound introduced by this call
8   |
9   = help: the trait `Sized` is not implemented for `str`
10note: required by a bound in `Box::<T>::new`
11  --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
12
13error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
14  --> $DIR/dst-rvalue.rs:8:37
15   |
16LL |     let _x: Box<[isize]> = Box::new(*array);
17   |                            -------- ^^^^^^ doesn't have a size known at compile-time
18   |                            |
19   |                            required by a bound introduced by this call
20   |
21   = help: the trait `Sized` is not implemented for `[isize]`
22note: required by a bound in `Box::<T>::new`
23  --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0277`.