mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
de24536187
The `macros4.rs` challenge can automatically be solved by rustfmt without the user noticing. Adding `#[rustfmt::skip]` above the `macro_rules!` line fixes this issue. |
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
macros1.rs | 2 years ago | |
macros2.rs | 2 years ago | |
macros3.rs | 2 years ago | |
macros4.rs | 2 years ago |
README.md
Macros
Rust's macro system is very powerful, but also kind of difficult to wrap your head around. We're not going to teach you how to write your own fully-featured macros. Instead, we'll show you how to use and create them.
If you'd like to learn more about writing your own macros, the macrokata project has a similar style of exercises to Rustlings, but is all about learning to write Macros.