2 Compiling chapter10 v0.1.0 (file:///projects/chapter10)
3 error[E0369]: binary operation `>` cannot be applied to type `T`
6 5 | if item > largest {
11 help: consider restricting type parameter `T`
13 1 | fn largest<T: std::cmp::PartialOrd>(list: &[T]) -> T {
14 | ^^^^^^^^^^^^^^^^^^^^^^
16 For more information about this error, try `rustc --explain E0369`.
17 error: could not compile `chapter10` due to previous error