We get 2 generic types of the same type and return that same type
(x: T, y: T)
| 155 | |
| 156 | // We get 2 generic types of the same type and return that same type |
| 157 | fn get_sum_gen<T:Add<Output = T>>(x: T, y: T) -> T { |
| 158 | return x + y; |
| 159 | } |
| 160 | |
| 161 | fn main() { |
| 162 | // It is common to indent with 4 spaces |
nothing calls this directly
no outgoing calls
no test coverage detected