• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

greeting() -> String1 pub fn greeting() -> String {
2     "Hello World".to_owned()
3 }
4 
5 // too_many_args/clippy.toml will require no more than 2 args.
with_args(_: u32, _: u32, _: u32)6 pub fn with_args(_: u32, _: u32, _: u32) {}
7 
8 #[cfg(test)]
9 mod tests {
10     use super::*;
11     #[test]
it_works()12     fn it_works() {
13         assert_eq!(greeting(), "Hello World".to_owned());
14     }
15 }
16