rust/tests/ui/issues/issue-5280.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
265 B
Rust
Raw Normal View History

// 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();
}