blob: 1747e96eef4e394a0a548c83228020cec2f6c0fb [file] [log] [blame]
// Test that we can use ! as an argument to a trait impl.
// error-pattern:oh no!
#![feature(never_type)]
struct Wub;
impl PartialEq<!> for Wub {
fn eq(&self, other: &!) -> bool {
*other
}
}
fn main() {
let _ = Wub == panic!("oh no!");
}