]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5280.rs
Consider privacy more carefully when suggesting accessing fields
[rust.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 }