fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 2 --> $DIR/transmute-fail.rs:7:5 3 | 4LL | std::mem::transmute(v) 5 | ^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: source type: `[[u32; H+1]; W]` (generic size {const expr}) 8 = note: target type: `[[u32; W+1]; H]` (generic size {const expr}) 9 10error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 11 --> $DIR/transmute-fail.rs:16: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]` (size can vary because of [u32; W]) 18 19error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 20 --> $DIR/transmute-fail.rs:23:5 21 | 22LL | std::mem::transmute(v) 23 | ^^^^^^^^^^^^^^^^^^^ 24 | 25 = note: source type: `[[u32; H]; W]` (generic size {const expr}) 26 = note: target type: `[u32; W * H * H]` (generic size {const expr}) 27 28error[E0512]: cannot transmute between types of different sizes, or dependently-sized types 29 --> $DIR/transmute-fail.rs:30:5 30 | 31LL | std::mem::transmute(v) 32 | ^^^^^^^^^^^^^^^^^^^ 33 | 34 = note: source type: `[[[u32; 8888888]; 9999999]; 777777777]` (values of the type `[[u32; 8888888]; 9999999]` are too big for the current architecture) 35 = note: target type: `[[[u32; 9999999]; 777777777]; 8888888]` (values of the type `[[u32; 9999999]; 777777777]` are too big for the current architecture) 36 37error[E0308]: mismatched types 38 --> $DIR/transmute-fail.rs:12:53 39 | 40LL | fn bar<const W: bool, const H: usize>(v: [[u32; H]; W]) -> [[u32; W]; H] { 41 | ^ expected `usize`, found `bool` 42 43error[E0308]: mismatched types 44 --> $DIR/transmute-fail.rs:12:67 45 | 46LL | fn bar<const W: bool, const H: usize>(v: [[u32; H]; W]) -> [[u32; W]; H] { 47 | ^ expected `usize`, found `bool` 48 49error: aborting due to 6 previous errors 50 51Some errors have detailed explanations: E0308, E0512. 52For more information about an error, try `rustc --explain E0308`.