rust/tests/ui/suppressed-error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
158 B
Rust
Raw Normal View History

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