diff --git a/src/main.rs b/src/main.rs index e7a11a9..0c25b5a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,20 @@ +#![allow(unused)] fn main() { - println!("Hello, world!"); + + let args = vec![ + "string1", + "string2", + ]; + + println!(); + + for arg in args { + println!("{}",func(&arg)); + }; + + println!(); +} + +fn func(s: &str) -> String { + s.into() }