Where Clause
Rewrite this function using a where clause instead of inline trait bounds. The function should compare two values and print which is smaller.
Expected output:
text
Smaller: 3
Hints:
- Move the bounds from
<T: ...>towhere T: PartialOrd + std::fmt::Display - The
whereclause goes after the parameter list, before the{
rust
fn main() {
}