2022-02-10 11:40:06 -06:00
|
|
|
error: transmute from `Ty2<u32, i32>` which has an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:29:33
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Ty2C<u32, i32> = transmute(value::<Ty2<u32, i32>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::transmute-undefined-repr` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::transmute_undefined_repr)]`
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
error: transmute into `Ty2<u32, i32>` which has an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:33:32
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Ty2<u32, i32> = transmute(value::<Ty2C<u32, i32>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
error: transmute from `Ty<Ty2<u32, i32>>` to `Ty2<u32, f32>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:42:32
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Ty2<u32, f32> = transmute(value::<Ty<Ty2<u32, i32>>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Ty2`) may have different layouts
|
|
|
|
|
|
|
|
error: transmute from `Ty2<u32, f32>` to `Ty<Ty2<u32, i32>>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:46:36
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Ty<Ty2<u32, i32>> = transmute(value::<Ty2<u32, f32>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Ty2`) may have different layouts
|
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
error: transmute from `Ty<&Ty2<u32, i32>>` to `&Ty2<u32, f32>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:54:33
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: &Ty2<u32, f32> = transmute(value::<Ty<&Ty2<u32, i32>>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Ty2`) may have different layouts
|
|
|
|
|
|
|
|
error: transmute from `&Ty2<u32, f32>` to `Ty<&Ty2<u32, i32>>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:58:37
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Ty<&Ty2<u32, i32>> = transmute(value::<&Ty2<u32, f32>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Ty2`) may have different layouts
|
2022-02-10 11:40:06 -06:00
|
|
|
|
2022-02-26 07:26:21 -06:00
|
|
|
error: transmute from `std::boxed::Box<Ty2<u32, u32>>` to `&mut Ty2<u32, f32>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:88:45
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: &'static mut Ty2<u32, f32> = transmute(value::<Box<Ty2<u32, u32>>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Ty2`) may have different layouts
|
|
|
|
|
|
|
|
error: transmute from `&mut Ty2<u32, f32>` to `std::boxed::Box<Ty2<u32, u32>>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:92:37
|
2022-02-26 07:26:21 -06:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Box<Ty2<u32, u32>> = transmute(value::<&'static mut Ty2<u32, f32>>());
|
2022-02-26 07:26:21 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Ty2`) may have different layouts
|
2022-02-10 11:40:06 -06:00
|
|
|
|
2022-08-31 08:24:45 -05:00
|
|
|
error: transmute into `*const Ty2<u32, u32>` which has an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:189:39
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: *const Ty2<u32, u32> = transmute(value::<*const Ty2C<u32, Ty2<u32, u32>>>());
|
2022-08-31 08:24:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the contained type `Ty2<u32, u32>` has an undefined layout
|
|
|
|
|
|
|
|
error: transmute from `*const Ty2<u32, u32>` which has an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:193:50
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: *const Ty2C<u32, Ty2<u32, u32>> = transmute(value::<*const Ty2<u32, u32>>());
|
2022-08-31 08:24:45 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: the contained type `Ty2<u32, u32>` has an undefined layout
|
|
|
|
|
2022-03-24 08:50:04 -05:00
|
|
|
error: transmute from `std::vec::Vec<Ty2<U, i32>>` to `std::vec::Vec<Ty2<T, u32>>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:240:35
|
2022-03-24 08:50:04 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Vec<Ty2<T, u32>> = transmute(value::<Vec<Ty2<U, i32>>>());
|
2022-03-24 08:50:04 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Vec`) may have different layouts
|
|
|
|
|
|
|
|
error: transmute from `std::vec::Vec<Ty2<T, u32>>` to `std::vec::Vec<Ty2<U, i32>>`, both of which have an undefined layout
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/transmute_undefined_repr.rs:244:35
|
2022-03-24 08:50:04 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | let _: Vec<Ty2<U, i32>> = transmute(value::<Vec<Ty2<T, u32>>>());
|
2022-03-24 08:50:04 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: two instances of the same generic type (`Vec`) may have different layouts
|
|
|
|
|
2022-08-31 08:24:45 -05:00
|
|
|
error: aborting due to 12 previous errors
|
2022-02-10 11:40:06 -06:00
|
|
|
|