]> git.lizzy.rs Git - rust.git/blob - tests/issue-825.rs
fixing error message for empty println macro
[rust.git] / tests / issue-825.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3 #![allow(warnings)]
4
5 // this should compile in a reasonable amount of time
6 fn rust_type_id(name: &str) {
7     if "bool" == &name[..] || "uint" == &name[..] || "u8" == &name[..] || "u16" == &name[..] || "u32" == &name[..]
8         || "f32" == &name[..] || "f64" == &name[..] || "i8" == &name[..] || "i16" == &name[..]
9         || "i32" == &name[..] || "i64" == &name[..] || "Self" == &name[..] || "str" == &name[..]
10     {
11         unreachable!();
12     }
13 }
14
15 fn main() {}