|
| 1 | +error[E0412]: cannot find type `Subset` in this scope |
| 2 | + --> $DIR/thaw-transmute-invalid-enum.rs:34:41 |
| 3 | + | |
| 4 | +LL | assert::is_transmutable::<Superset, Subset>(); |
| 5 | + | ^^^^^^ not found in this scope |
| 6 | + | |
| 7 | +help: you might be missing a type parameter |
| 8 | + | |
| 9 | +LL | fn test<Subset>() { |
| 10 | + | ++++++++ |
| 11 | + |
| 12 | +error[E0517]: attribute should be applied to a struct or union |
| 13 | + --> $DIR/thaw-transmute-invalid-enum.rs:21:11 |
| 14 | + | |
| 15 | +LL | #[repr(C, packed(2))] |
| 16 | + | ^^^^^^^^^ |
| 17 | +LL | |
| 18 | +LL | / enum OxFF { |
| 19 | +LL | | V = 0xFF, |
| 20 | +LL | | } |
| 21 | + | |_- not a struct or union |
| 22 | + |
| 23 | +error[E0658]: use of unstable library feature 'transmutability' |
| 24 | + --> $DIR/thaw-transmute-invalid-enum.rs:4:20 |
| 25 | + | |
| 26 | +LL | use std::mem::{Assume, TransmuteFrom}; |
| 27 | + | ^^^^^^ |
| 28 | + | |
| 29 | + = note: see issue #99571 <https://github.com/rust-lang/rust/issues/99571> for more information |
| 30 | + = help: add `#![feature(transmutability)]` to the crate attributes to enable |
| 31 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 32 | + |
| 33 | +error[E0658]: use of unstable library feature 'transmutability' |
| 34 | + --> $DIR/thaw-transmute-invalid-enum.rs:4:28 |
| 35 | + | |
| 36 | +LL | use std::mem::{Assume, TransmuteFrom}; |
| 37 | + | ^^^^^^^^^^^^^ |
| 38 | + | |
| 39 | + = note: see issue #99571 <https://github.com/rust-lang/rust/issues/99571> for more information |
| 40 | + = help: add `#![feature(transmutability)]` to the crate attributes to enable |
| 41 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 42 | + |
| 43 | +error[E0658]: use of unstable library feature 'transmutability' |
| 44 | + --> $DIR/thaw-transmute-invalid-enum.rs:10:14 |
| 45 | + | |
| 46 | +LL | Dst: TransmuteFrom<Src>, |
| 47 | + | ^^^^^^^^^^^^^^^^^^ |
| 48 | + | |
| 49 | + = note: see issue #99571 <https://github.com/rust-lang/rust/issues/99571> for more information |
| 50 | + = help: add `#![feature(transmutability)]` to the crate attributes to enable |
| 51 | + = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date |
| 52 | + |
| 53 | +error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union |
| 54 | + --> $DIR/thaw-transmute-invalid-enum.rs:29:9 |
| 55 | + | |
| 56 | +LL | a: Ox00, |
| 57 | + | ^^^^^^^ |
| 58 | + | |
| 59 | + = note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>` |
| 60 | +help: wrap the field type in `ManuallyDrop<...>` |
| 61 | + | |
| 62 | +LL | a: std::mem::ManuallyDrop<Ox00>, |
| 63 | + | +++++++++++++++++++++++ + |
| 64 | + |
| 65 | +error: aborting due to 6 previous errors |
| 66 | + |
| 67 | +Some errors have detailed explanations: E0412, E0517, E0658, E0740. |
| 68 | +For more information about an error, try `rustc --explain E0412`. |
0 commit comments