2021-07-03 12:18:13 -04:00
error[E0412]: cannot find type `Missing` in this scope
2024-08-21 17:01:32 +00:00
--> $DIR/unknown_src_field.rs:17:27
2021-07-03 12:18:13 -04:00
|
2024-08-21 17:01:32 +00:00
LL | #[repr(C)] struct Src(Missing);
2021-07-03 12:18:13 -04:00
| ^^^^^^^ not found in this scope
2024-08-21 17:01:32 +00:00
error[E0412]: cannot find type `Missing` in this scope
--> $DIR/unknown_src_field.rs:23:36
|
LL | #[repr(C)] struct Src(&'static Missing);
| ^^^^^^^ not found in this scope
error[E0277]: `should_gracefully_handle_unknown_src_field::Src` cannot be safely transmuted into `should_gracefully_handle_unknown_src_field::Dst`
2024-02-26 16:49:25 +00:00
--> $DIR/unknown_src_field.rs:19:36
2023-06-12 16:35:23 -07:00
|
2024-02-26 16:49:25 +00:00
LL | assert::is_transmutable::<Src, Dst>();
2024-08-21 17:01:32 +00:00
| ^^^ `should_gracefully_handle_unknown_src_field::Src` has an unknown layout
|
note: required by a bound in `is_transmutable`
--> $DIR/unknown_src_field.rs:12:14
|
LL | pub fn is_transmutable<Src, Dst>()
| --------------- required by a bound in this function
LL | where
2024-08-27 14:05:54 +00:00
LL | Dst: TransmuteFrom<Src>
| ^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
2024-08-21 17:01:32 +00:00
error[E0277]: `should_gracefully_handle_unknown_src_ref_field::Src` cannot be safely transmuted into `should_gracefully_handle_unknown_src_ref_field::Dst`
--> $DIR/unknown_src_field.rs:25:36
|
LL | assert::is_transmutable::<Src, Dst>();
| ^^^ `should_gracefully_handle_unknown_src_ref_field::Src` has an unknown layout
2023-06-12 16:35:23 -07:00
|
note: required by a bound in `is_transmutable`
2024-02-26 16:49:25 +00:00
--> $DIR/unknown_src_field.rs:12:14
2023-06-12 16:35:23 -07:00
|
2024-02-26 16:49:25 +00:00
LL | pub fn is_transmutable<Src, Dst>()
2023-06-12 16:35:23 -07:00
| --------------- required by a bound in this function
LL | where
2024-08-27 14:05:54 +00:00
LL | Dst: TransmuteFrom<Src>
| ^^^^^^^^^^^^^^^^^^ required by this bound in `is_transmutable`
2023-06-12 16:35:23 -07:00
2024-08-21 17:01:32 +00:00
error: aborting due to 4 previous errors
2021-07-03 12:18:13 -04:00
2023-06-12 16:35:23 -07:00
Some errors have detailed explanations: E0277, E0412.
For more information about an error, try `rustc --explain E0277`.