This commit is contained in:
sunface 2022-03-05 17:43:10 +08:00
parent f4d33a4aee
commit 797875026b
1 changed files with 2 additions and 0 deletions

View File

@ -221,5 +221,7 @@ fn my_function(x: Box<dyn MyTrait>) {
fn main() {
my_function(Box::new(13_u32));
my_function(Box::new(String::from("abc")));
println!("Success!")
}
```