6 use std::cmp::{min, max};
7 use std::cmp::min as my_min;
8 use std::cmp::max as my_max;
10 const LARGE : usize = 3;
20 my_max(3, my_min(x, 1));
22 min(3, max(1, x)); // ok, could be 1, 2 or 3 depending on x
24 min(1, max(LARGE, x)); // no error, we don't lookup consts here
32 min("Apple", max("Zoo", s));
33 max(min(s, "Apple"), "Zoo");
35 max("Apple", min(s, "Zoo")); // ok