blob: 45e54b9bf7c18398c150c826caf8957705f75e3a [file] [log] [blame]
// Test that we can use ! as an associated type.
// check-pass
trait Foo {
type Wow;
fn smeg(&self) -> Self::Wow;
}
struct Blah;
impl Foo for Blah {
type Wow = !;
fn smeg(&self) -> ! {
panic!("kapow!");
}
}
fn main() {
Blah.smeg();
}