1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-12 11:14:55 +02:00
rustlings/exercises/macros
0lhi de24536187
macros4.rs: Add rustfmt::skip to prevent auto-fix.
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.
2023-02-24 01:43:23 +01:00
..
macros1.rs feat(macros): add hint comments 2022-07-15 12:05:26 +02:00
macros2.rs feat(macros): add hint comments 2022-07-15 12:05:26 +02:00
macros3.rs feat(macros): add hint comments 2022-07-15 12:05:26 +02:00
macros4.rs macros4.rs: Add rustfmt::skip to prevent auto-fix. 2023-02-24 01:43:23 +01:00
README.md feat(macros-readme): Add link to MacroKata 2022-10-24 13:57:44 +11:00

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.

Further information