mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
62ba3e70a1
The previous output was unintuitive to users.
10 lines
178 B
Rust
10 lines
178 B
Rust
fn f() -> isize {
|
|
(return 1, return 2)
|
|
//~^ ERROR mismatched types
|
|
//~| expected type `isize`
|
|
//~| found tuple `(!, !)`
|
|
//~| expected `isize`, found `(!, !)`
|
|
}
|
|
|
|
fn main() {}
|