error[E0369]: binary operation `>` cannot be applied to type `T`
--> prog.rs:2:8
|
2 | if a > b { a } else { b }
| - ^ - T
| |
| T
|
help: consider restricting type parameter `T`
|
1 | fn bigger<T: std::cmp::PartialOrd>(a: T, b: T) -> T {
| ++++++++++++++++++++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0369`.