This commit is contained in:
sunface
2022-03-05 17:43:10 +08:00
parent f4d33a4aee
commit 797875026b

View File

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