diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-5280.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-5280.rs b/src/test/ui/issues/issue-5280.rs new file mode 100644 index 000000000..5c5ce6c98 --- /dev/null +++ b/src/test/ui/issues/issue-5280.rs @@ -0,0 +1,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(); +} |