mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
20 lines
820 B
Plaintext
20 lines
820 B
Plaintext
error[E0412]: cannot find type `Missing` in this scope
|
|
--> $DIR/cannot-transmute-unnormalizable-type.rs:7:5
|
|
|
|
|
LL | Missing: Trait,
|
|
| ^^^^^^^ not found in this scope
|
|
|
|
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
|
|
--> $DIR/cannot-transmute-unnormalizable-type.rs:19:9
|
|
|
|
|
LL | std::mem::transmute::<Option<()>, Option<&Other>>(None);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: source type: `Option<()>` (8 bits)
|
|
= note: target type: `Option<&Other>` (unable to determine layout for `Other` because `<() as Trait>::RefTarget` cannot be normalized)
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0412, E0512.
|
|
For more information about an error, try `rustc --explain E0412`.
|