summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-5280.rs
blob: 5c5ce6c987ad124a2bc7662418e98fbf88a1428a (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();
}