1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-07-09 01:05:50 +02:00
Files
.github
.vscode
exercises
clippy
conversions
enums
error_handling
functions
generics
hashmaps
if
intro
lifetimes
macros
README.md
macros1.rs
macros2.rs
macros3.rs
macros4.rs
modules
move_semantics
options
primitive_types
standard_library_types
strings
structs
tests
threads
traits
variables
vecs
README.md
quiz1.rs
quiz2.rs
quiz3.rs
src
tests
.all-contributorsrc
.editorconfig
.gitignore
.gitpod.yml
.replit
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
LICENSE
README.md
flake.lock
flake.nix
info.toml
install.ps1
install.sh
shell.nix
rustlings/exercises/macros/macros1.rs

15 lines
233 B
Rust
Raw Normal View History

2018-02-21 22:09:53 -08:00
// macros1.rs
2022-07-15 12:05:26 +02:00
// Execute `rustlings hint macros1` or use the `hint` watch subcommand for a hint.
2017-03-17 09:30:29 -05:00
// I AM NOT DONE
2017-03-17 09:30:29 -05:00
macro_rules! my_macro {
() => {
println!("Check out my macro!");
};
}
fn main() {
my_macro();
}