|
1 | 1 | error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
|
2 |
| - --> $DIR/const-unsized.rs:3:16 |
| 2 | + --> $DIR/const-unsized.rs:3:35 |
3 | 3 | |
|
4 | 4 | LL | const CONST_0: dyn Debug + Sync = *(&0 as &(dyn Debug + Sync));
|
5 |
| - | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
6 | 6 | |
|
7 | 7 | = help: the trait `Sized` is not implemented for `(dyn Debug + Sync + 'static)`
|
| 8 | + = note: constant expressions must have a statically known size |
8 | 9 |
|
9 | 10 | error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
|
10 |
| - --> $DIR/const-unsized.rs:3:35 |
| 11 | + --> $DIR/const-unsized.rs:3:16 |
11 | 12 | |
|
12 | 13 | LL | const CONST_0: dyn Debug + Sync = *(&0 as &(dyn Debug + Sync));
|
13 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 14 | + | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
14 | 15 | |
|
15 | 16 | = help: the trait `Sized` is not implemented for `(dyn Debug + Sync + 'static)`
|
16 |
| - = note: constant expressions must have a statically known size |
17 | 17 |
|
18 | 18 | error[E0277]: the size for values of type `str` cannot be known at compilation time
|
19 |
| - --> $DIR/const-unsized.rs:7:18 |
| 19 | + --> $DIR/const-unsized.rs:7:24 |
20 | 20 | |
|
21 | 21 | LL | const CONST_FOO: str = *"foo";
|
22 |
| - | ^^^ doesn't have a size known at compile-time |
| 22 | + | ^^^^^^ doesn't have a size known at compile-time |
23 | 23 | |
|
24 | 24 | = help: the trait `Sized` is not implemented for `str`
|
| 25 | + = note: constant expressions must have a statically known size |
25 | 26 |
|
26 | 27 | error[E0277]: the size for values of type `str` cannot be known at compilation time
|
27 |
| - --> $DIR/const-unsized.rs:7:24 |
| 28 | + --> $DIR/const-unsized.rs:7:18 |
28 | 29 | |
|
29 | 30 | LL | const CONST_FOO: str = *"foo";
|
30 |
| - | ^^^^^^ doesn't have a size known at compile-time |
| 31 | + | ^^^ doesn't have a size known at compile-time |
31 | 32 | |
|
32 | 33 | = help: the trait `Sized` is not implemented for `str`
|
33 |
| - = note: constant expressions must have a statically known size |
34 | 34 |
|
35 | 35 | error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
|
36 |
| - --> $DIR/const-unsized.rs:11:18 |
| 36 | + --> $DIR/const-unsized.rs:11:37 |
37 | 37 | |
|
38 | 38 | LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
|
39 |
| - | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 39 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
40 | 40 | |
|
41 | 41 | = help: the trait `Sized` is not implemented for `(dyn Debug + Sync + 'static)`
|
| 42 | + = note: constant expressions must have a statically known size |
42 | 43 |
|
43 | 44 | error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
|
44 |
| - --> $DIR/const-unsized.rs:11:37 |
| 45 | + --> $DIR/const-unsized.rs:11:18 |
45 | 46 | |
|
46 | 47 | LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
|
47 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 48 | + | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
48 | 49 | |
|
49 | 50 | = help: the trait `Sized` is not implemented for `(dyn Debug + Sync + 'static)`
|
50 |
| - = note: constant expressions must have a statically known size |
51 | 51 |
|
52 | 52 | error[E0277]: the size for values of type `str` cannot be known at compilation time
|
53 |
| - --> $DIR/const-unsized.rs:15:20 |
| 53 | + --> $DIR/const-unsized.rs:15:26 |
54 | 54 | |
|
55 | 55 | LL | static STATIC_BAR: str = *"bar";
|
56 |
| - | ^^^ doesn't have a size known at compile-time |
| 56 | + | ^^^^^^ doesn't have a size known at compile-time |
57 | 57 | |
|
58 | 58 | = help: the trait `Sized` is not implemented for `str`
|
| 59 | + = note: constant expressions must have a statically known size |
59 | 60 |
|
60 | 61 | error[E0277]: the size for values of type `str` cannot be known at compilation time
|
61 |
| - --> $DIR/const-unsized.rs:15:26 |
| 62 | + --> $DIR/const-unsized.rs:15:20 |
62 | 63 | |
|
63 | 64 | LL | static STATIC_BAR: str = *"bar";
|
64 |
| - | ^^^^^^ doesn't have a size known at compile-time |
| 65 | + | ^^^ doesn't have a size known at compile-time |
65 | 66 | |
|
66 | 67 | = help: the trait `Sized` is not implemented for `str`
|
67 |
| - = note: constant expressions must have a statically known size |
68 | 68 |
|
69 | 69 | error[E0161]: cannot move a value of type `str`
|
70 | 70 | --> $DIR/const-unsized.rs:20:48
|
|
0 commit comments