@@ -26,7 +26,7 @@ LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
2626 = note: statics and constants must have a statically known size
2727
2828error[E0277]: the size for values of type `str` cannot be known at compilation time
29- --> $DIR/const-unsized.rs:15 :1
29+ --> $DIR/const-unsized.rs:14 :1
3030 |
3131LL | static STATIC_BAR: str = *"bar";
3232 | ^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
@@ -46,31 +46,7 @@ error[E0507]: cannot move out of a shared reference
4646LL | const CONST_FOO: str = *"foo";
4747 | ^^^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait
4848
49- error[E0507]: cannot move out of a shared reference
50- --> $DIR/const-unsized.rs:11:37
51- |
52- LL | static STATIC_1: dyn Debug + Sync = *(&1 as &(dyn Debug + Sync));
53- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `dyn Debug + Sync`, which does not implement the `Copy` trait
54-
55- error[E0507]: cannot move out of a shared reference
56- --> $DIR/const-unsized.rs:15:26
57- |
58- LL | static STATIC_BAR: str = *"bar";
59- | ^^^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait
60-
61- error[E0161]: cannot move a value of type `dyn Debug + Sync`
62- --> $DIR/const-unsized.rs:20:38
63- |
64- LL | println!("{:?} {:?} {:?} {:?}", &CONST_0, &CONST_FOO, &STATIC_1, &STATIC_BAR);
65- | ^^^^^^^ the size of `dyn Debug + Sync` cannot be statically determined
66-
67- error[E0161]: cannot move a value of type `str`
68- --> $DIR/const-unsized.rs:20:48
69- |
70- LL | println!("{:?} {:?} {:?} {:?}", &CONST_0, &CONST_FOO, &STATIC_1, &STATIC_BAR);
71- | ^^^^^^^^^ the size of `str` cannot be statically determined
72-
73- error: aborting due to 10 previous errors
49+ error: aborting due to 6 previous errors
7450
75- Some errors have detailed explanations: E0161, E0277, E0507.
76- For more information about an error, try `rustc --explain E0161 `.
51+ Some errors have detailed explanations: E0277, E0507.
52+ For more information about an error, try `rustc --explain E0277 `.
0 commit comments