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