]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-5280.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-5280.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 type FontTableTag = u32;
5
6 trait FontTableTagConversions {
7 fn tag_to_string(self);
8 }
9
10 impl FontTableTagConversions for FontTableTag {
11 fn tag_to_string(self) {
12 let _ = &self;
13 }
14 }
15
16 pub fn main() {
17 5.tag_to_string();
18 }