3 use std::cmp::max as my_max;
4 use std::cmp::min as my_min;
5 use std::cmp::{max, min};
7 const LARGE: usize = 3;
17 my_max(3, my_min(x, 1));
19 min(3, max(1, x)); // ok, could be 1, 2 or 3 depending on x
21 min(1, max(LARGE, x)); // no error, we don't lookup consts here
29 min("Apple", max("Zoo", s));
30 max(min(s, "Apple"), "Zoo");
32 max("Apple", min(s, "Zoo")); // ok