rust/src/test/ui/suppressed-error.rs

9 lines
156 B
Rust
Raw Normal View History

fn main() {
let (x, y) = ();
2015-01-12 00:01:44 -06:00
//~^ ERROR mismatched types
//~| expected type `()`
//~| found type `(_, _)`
//~| expected (), found tuple
return x;
}