(student: &dyn CompSciStudent)
| 66 | } |
| 67 | |
| 68 | fn comp_sci_student_greeting(student: &dyn CompSciStudent) -> String { |
| 69 | format!( |
| 70 | "My name is {} and I attend {}. My favorite language is {}. My Git username is {}", |
| 71 | student.name(), |
| 72 | student.university(), |
| 73 | student.fav_language(), |
| 74 | student.git_username() |
| 75 | ) |
| 76 | } |
| 77 | |
| 78 | fn comp_sci<T: CompSciStudent>(student: &T) -> String { |
| 79 | comp_sci_student_greeting(student) |
no outgoing calls
no test coverage detected