summary refs log tree commit diff
path: root/tests/ui/issues/issue-5280.rs
blob: 66452c367767941856b2427b8f03c67074c225a3 (plain)
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();
}