mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
210 B
14 lines
210 B
3 years ago
|
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();
|
||
|
}
|