summaryrefslogtreecommitdiffstats
path: root/third_party/rust/zerocopy/tests/ui-stable/transmute-mut-dst-unsized.stderr
blob: 07727850cd6b2e8c9cbeded948898034f1fece6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |                                |
   |                                doesn't have a size known at compile-time
   |                                required by a bound introduced by this call
   |
   = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `AssertDstIsFromBytes`
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |                                |
   |                                doesn't have a size known at compile-time
   |                                required by a bound introduced by this call
   |
   = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `AssertDstIsAsBytes`
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes`
   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `[u8]`
   = note: all local variables must have a statically known size
   = help: unsized locals are gated as an unstable feature
   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `MaxAlignsOf`
  --> src/macro_util.rs
   |
   | pub union MaxAlignsOf<T, U> {
   |                          ^ required by this bound in `MaxAlignsOf`
   = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `transmute`
  --> $RUST/core/src/intrinsics.rs
   |
   |     pub fn transmute<Src, Dst>(src: Src) -> Dst;
   |                           ^^^ required by this bound in `transmute`
   = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |                                |
   |                                doesn't have a size known at compile-time
   |                                required by a bound introduced by this call
   |
   = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `MaxAlignsOf::<T, U>::new`
  --> src/macro_util.rs
   |
   | impl<T, U> MaxAlignsOf<T, U> {
   |         ^ required by this bound in `MaxAlignsOf::<T, U>::new`
   |     #[inline(never)] // Make `missing_inline_in_public_items` happy.
   |     pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> {
   |            --- required by a bound in this associated function
   = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
  --> tests/ui-stable/transmute-mut-dst-unsized.rs:17:32
   |
17 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `transmute_mut`
  --> src/macro_util.rs
   |
   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
   |                                                          ^^^ required by this bound in `transmute_mut`
   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)