@@ -4,15 +4,15 @@ error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot
44LL | const CONST_0: dyn Debug + Sync = *(&0 as &(dyn Debug + Sync));
55 | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
66 |
7- = help: the trait `Sized` is not implemented for `( dyn Debug + Sync + 'static) `
7+ = help: the trait `Sized` is not implemented for `dyn Debug + Sync`
88
99error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
1010 --> $DIR/const-unsized.rs:3:35
1111 |
1212LL | const CONST_0: dyn Debug + Sync = *(&0 as &(dyn Debug + Sync));
1313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
1414 |
15- = help: the trait `Sized` is not implemented for `( dyn Debug + Sync + 'static) `
15+ = help: the trait `Sized` is not implemented for `dyn Debug + Sync`
1616 = note: constant expressions must have a statically known size
1717
1818error[E0277]: the size for values of type `str` cannot be known at compilation time
@@ -38,15 +38,15 @@ error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot
3838LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
3939 | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
4040 |
41- = help: the trait `Sized` is not implemented for `( dyn Debug + Sync + 'static) `
41+ = help: the trait `Sized` is not implemented for `dyn Debug + Sync`
4242
4343error[E0277]: the size for values of type `(dyn Debug + Sync + 'static)` cannot be known at compilation time
4444 --> $DIR/const-unsized.rs:11:37
4545 |
4646LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
4747 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
4848 |
49- = help: the trait `Sized` is not implemented for `( dyn Debug + Sync + 'static) `
49+ = help: the trait `Sized` is not implemented for `dyn Debug + Sync`
5050 = note: constant expressions must have a statically known size
5151
5252error[E0277]: the size for values of type `str` cannot be known at compilation time
0 commit comments