1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// run-pass #![allow(dead_code)] type FontTableTag = u32; trait FontTableTagConversions { fn tag_to_string(self); } impl FontTableTagConversions for FontTableTag { fn tag_to_string(self) { let _ = &self; } } pub fn main() { 5.tag_to_string(); }