Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[derive(Debug)]
- pub struct TestStruct {
- pub enumvalue: TestEnum,
- }
- #[derive(Debug)]
- pub enum TestEnum {
- Val1,
- Val2
- }
- pub static mut TEST : TestStruct = TestStruct {
- enumvalue: TestEnum::Val1,
- };
- fn main() {
- unsafe {
- println!("{:?}", TEST.enumvalue);
- }
- }
Add Comment
Please, Sign In to add comment