mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-08 06:58:13 +08:00
14 lines
210 B
Rust
14 lines
210 B
Rust
use hello_macro::HelloMacro;
|
|
|
|
struct Pancakes;
|
|
|
|
impl HelloMacro for Pancakes {
|
|
fn hello_macro() {
|
|
println!("Hello, Macro! My name is Pancakes!");
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
Pancakes::hello_macro();
|
|
}
|