fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: transmute from `Ty2<u32, i32>` which has an undefined layout 2 --> $DIR/transmute_undefined_repr.rs:29:33 3 | 4LL | let _: Ty2C<u32, i32> = transmute(value::<Ty2<u32, i32>>()); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: `-D clippy::transmute-undefined-repr` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::transmute_undefined_repr)]` 9 10error: transmute into `Ty2<u32, i32>` which has an undefined layout 11 --> $DIR/transmute_undefined_repr.rs:33:32 12 | 13LL | let _: Ty2<u32, i32> = transmute(value::<Ty2C<u32, i32>>()); 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 16error: transmute from `Ty<Ty2<u32, i32>>` to `Ty2<u32, f32>`, both of which have an undefined layout 17 --> $DIR/transmute_undefined_repr.rs:42:32 18 | 19LL | let _: Ty2<u32, f32> = transmute(value::<Ty<Ty2<u32, i32>>>()); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21 | 22 = note: two instances of the same generic type (`Ty2`) may have different layouts 23 24error: transmute from `Ty2<u32, f32>` to `Ty<Ty2<u32, i32>>`, both of which have an undefined layout 25 --> $DIR/transmute_undefined_repr.rs:46:36 26 | 27LL | let _: Ty<Ty2<u32, i32>> = transmute(value::<Ty2<u32, f32>>()); 28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 29 | 30 = note: two instances of the same generic type (`Ty2`) may have different layouts 31 32error: transmute from `Ty<&Ty2<u32, i32>>` to `&Ty2<u32, f32>`, both of which have an undefined layout 33 --> $DIR/transmute_undefined_repr.rs:54:33 34 | 35LL | let _: &Ty2<u32, f32> = transmute(value::<Ty<&Ty2<u32, i32>>>()); 36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 37 | 38 = note: two instances of the same generic type (`Ty2`) may have different layouts 39 40error: transmute from `&Ty2<u32, f32>` to `Ty<&Ty2<u32, i32>>`, both of which have an undefined layout 41 --> $DIR/transmute_undefined_repr.rs:58:37 42 | 43LL | let _: Ty<&Ty2<u32, i32>> = transmute(value::<&Ty2<u32, f32>>()); 44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 45 | 46 = note: two instances of the same generic type (`Ty2`) may have different layouts 47 48error: transmute from `std::boxed::Box<Ty2<u32, u32>>` to `&mut Ty2<u32, f32>`, both of which have an undefined layout 49 --> $DIR/transmute_undefined_repr.rs:88:45 50 | 51LL | let _: &'static mut Ty2<u32, f32> = transmute(value::<Box<Ty2<u32, u32>>>()); 52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 53 | 54 = note: two instances of the same generic type (`Ty2`) may have different layouts 55 56error: transmute from `&mut Ty2<u32, f32>` to `std::boxed::Box<Ty2<u32, u32>>`, both of which have an undefined layout 57 --> $DIR/transmute_undefined_repr.rs:92:37 58 | 59LL | let _: Box<Ty2<u32, u32>> = transmute(value::<&'static mut Ty2<u32, f32>>()); 60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 61 | 62 = note: two instances of the same generic type (`Ty2`) may have different layouts 63 64error: transmute into `*const Ty2<u32, u32>` which has an undefined layout 65 --> $DIR/transmute_undefined_repr.rs:189:39 66 | 67LL | let _: *const Ty2<u32, u32> = transmute(value::<*const Ty2C<u32, Ty2<u32, u32>>>()); 68 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 69 | 70 = note: the contained type `Ty2<u32, u32>` has an undefined layout 71 72error: transmute from `*const Ty2<u32, u32>` which has an undefined layout 73 --> $DIR/transmute_undefined_repr.rs:193:50 74 | 75LL | let _: *const Ty2C<u32, Ty2<u32, u32>> = transmute(value::<*const Ty2<u32, u32>>()); 76 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 77 | 78 = note: the contained type `Ty2<u32, u32>` has an undefined layout 79 80error: transmute from `std::vec::Vec<Ty2<U, i32>>` to `std::vec::Vec<Ty2<T, u32>>`, both of which have an undefined layout 81 --> $DIR/transmute_undefined_repr.rs:240:35 82 | 83LL | let _: Vec<Ty2<T, u32>> = transmute(value::<Vec<Ty2<U, i32>>>()); 84 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 85 | 86 = note: two instances of the same generic type (`Vec`) may have different layouts 87 88error: transmute from `std::vec::Vec<Ty2<T, u32>>` to `std::vec::Vec<Ty2<U, i32>>`, both of which have an undefined layout 89 --> $DIR/transmute_undefined_repr.rs:244:35 90 | 91LL | let _: Vec<Ty2<U, i32>> = transmute(value::<Vec<Ty2<T, u32>>>()); 92 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 93 | 94 = note: two instances of the same generic type (`Vec`) may have different layouts 95 96error: aborting due to 12 previous errors 97