fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.3 KiB84 linesraw
1error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2  --> $DIR/transmute_no_gate.rs:7:5
3   |
4LL |     std::mem::transmute(v)
5   |     ^^^^^^^^^^^^^^^^^^^
6   |
7   = note: source type: `[[u32; H]; W]` (this type does not have a fixed size)
8   = note: target type: `[[u32; W]; H]` (this type does not have a fixed size)
9
10error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
11  --> $DIR/transmute_no_gate.rs:20:5
12   |
13LL |     std::mem::transmute(v)
14   |     ^^^^^^^^^^^^^^^^^^^
15   |
16   = note: source type: `[[u32; H]; W]` (this type does not have a fixed size)
17   = note: target type: `[u32; W * H]` (this type does not have a fixed size)
18
19error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
20  --> $DIR/transmute_no_gate.rs:27:5
21   |
22LL |     std::mem::transmute(v)
23   |     ^^^^^^^^^^^^^^^^^^^
24   |
25   = note: source type: `[u32; H*W]` (this type does not have a fixed size)
26   = note: target type: `[[u32; W]; H]` (this type does not have a fixed size)
27
28error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
29  --> $DIR/transmute_no_gate.rs:36:5
30   |
31LL |     std::mem::transmute(v)
32   |     ^^^^^^^^^^^^^^^^^^^
33   |
34   = note: source type: `[[[u32; D]; H]; W]` (this type does not have a fixed size)
35   = note: target type: `[u32; D * W * H]` (this type does not have a fixed size)
36
37error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
38  --> $DIR/transmute_no_gate.rs:45:5
39   |
40LL |     std::mem::transmute(v)
41   |     ^^^^^^^^^^^^^^^^^^^
42   |
43   = note: source type: `[[[u32; D]; H]; W]` (this type does not have a fixed size)
44   = note: target type: `[[u32; D * W]; H]` (this type does not have a fixed size)
45
46error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
47  --> $DIR/transmute_no_gate.rs:52:5
48   |
49LL |     std::mem::transmute(v)
50   |     ^^^^^^^^^^^^^^^^^^^
51   |
52   = note: source type: `[u16; L]` (this type does not have a fixed size)
53   = note: target type: `[u8; L * 2]` (this type does not have a fixed size)
54
55error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
56  --> $DIR/transmute_no_gate.rs:59:5
57   |
58LL |     std::mem::transmute(v)
59   |     ^^^^^^^^^^^^^^^^^^^
60   |
61   = note: source type: `[u8; L * 2]` (this type does not have a fixed size)
62   = note: target type: `[u16; L]` (this type does not have a fixed size)
63
64error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
65  --> $DIR/transmute_no_gate.rs:66:5
66   |
67LL |     std::mem::transmute(v)
68   |     ^^^^^^^^^^^^^^^^^^^
69   |
70   = note: source type: `[u8; L]` (this type does not have a fixed size)
71   = note: target type: `[[u8; 1]; L]` (this type does not have a fixed size)
72
73error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
74  --> $DIR/transmute_no_gate.rs:75:5
75   |
76LL |     std::mem::transmute(v)
77   |     ^^^^^^^^^^^^^^^^^^^
78   |
79   = note: source type: `[[u32; 2 * H]; W + W]` (this type does not have a fixed size)
80   = note: target type: `[[u32; W + W]; 2 * H]` (this type does not have a fixed size)
81
82error: aborting due to 9 previous errors
83
84For more information about this error, try `rustc --explain E0512`.