]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-5280.rs
Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviper
[rust.git] / tests / 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 }