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