2 // Test that we can call static methods on ! both directly and when it appears in a generic
4 #![feature(never_type)]
7 fn stringify_type() -> &'static str;
10 impl StringifyType for ! {
11 fn stringify_type() -> &'static str {
16 fn maybe_stringify<T: StringifyType>(opt: Option<T>) -> &'static str {
18 Some(_) => T::stringify_type(),
24 println!("! is {}", <!>::stringify_type());
25 println!("None is {}", maybe_stringify(None::<!>));