mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
12 lines
176 B
Rust
12 lines
176 B
Rust
//@ run-fail
|
|
//@ error-pattern:quux
|
|
//@ needs-subprocess
|
|
|
|
fn foo() -> ! {
|
|
panic!("quux");
|
|
}
|
|
|
|
fn main() {
|
|
foo() == foo(); // these types wind up being defaulted to ()
|
|
}
|