1 // Test that we can call static methods on ! both directly and when it appears in a generic
3 #![feature(never_type)]
6 fn stringify_type() -> &'static str;
9 impl StringifyType for ! {
10 fn stringify_type() -> &'static str {
15 fn maybe_stringify<T: StringifyType>(opt: Option<T>) -> &'static str {
17 Some(_) => T::stringify_type(),
23 println!("! is {}", <!>::stringify_type());
24 println!("None is {}", maybe_stringify(None::<!>));