fn getX<T>(idx:u8)->Box<T>{ if idx<3{ return 0; } else if idx<10{ return "<10"; } return "其它"; } fn main() { println!(getX<u8>(1)); }