Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo {
- a: u32,
- b: bool,
- }
- enum Animal {
- Dog,
- Cat,
- Mouse,
- }
- fn main() {
- let x = Foo {
- a: 5,
- b: false,
- };
- let y = Animal::Dog;
- let z = (42, "asdf");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement