1 error[E0277]: the size for value values of type `(dyn std::fmt::Debug + std::marker::Sync + 'static)` cannot be known at compilation time
2 --> $DIR/const-unsized.rs:13:29
4 LL | const CONST_0: Debug+Sync = *(&0 as &(Debug+Sync));
5 | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + std::marker::Sync + 'static)`
8 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized>
9 = note: constant expressions must have a statically known size
11 error[E0277]: the size for value values of type `str` cannot be known at compilation time
12 --> $DIR/const-unsized.rs:16:24
14 LL | const CONST_FOO: str = *"foo";
15 | ^^^^^^ doesn't have a size known at compile-time
17 = help: the trait `std::marker::Sized` is not implemented for `str`
18 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized>
19 = note: constant expressions must have a statically known size
21 error[E0277]: the size for value values of type `(dyn std::fmt::Debug + std::marker::Sync + 'static)` cannot be known at compilation time
22 --> $DIR/const-unsized.rs:19:31
24 LL | static STATIC_1: Debug+Sync = *(&1 as &(Debug+Sync));
25 | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
27 = help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + std::marker::Sync + 'static)`
28 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized>
29 = note: constant expressions must have a statically known size
31 error[E0277]: the size for value values of type `str` cannot be known at compilation time
32 --> $DIR/const-unsized.rs:22:26
34 LL | static STATIC_BAR: str = *"bar";
35 | ^^^^^^ doesn't have a size known at compile-time
37 = help: the trait `std::marker::Sized` is not implemented for `str`
38 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types--sized>
39 = note: constant expressions must have a statically known size
41 error: aborting due to 4 previous errors
43 For more information about this error, try `rustc --explain E0277`.