mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
9 lines
151 B
Rust
9 lines
151 B
Rust
// Test that return another type in place of ! raises a type mismatch.
|
|
|
|
fn fail() -> ! {
|
|
return "wow"; //~ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {
|
|
}
|