diff options
Diffstat (limited to 'tests/ui/typeck/suppressed-error.rs')
-rw-r--r-- | tests/ui/typeck/suppressed-error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/typeck/suppressed-error.rs b/tests/ui/typeck/suppressed-error.rs new file mode 100644 index 000000000..1e39be460 --- /dev/null +++ b/tests/ui/typeck/suppressed-error.rs @@ -0,0 +1,8 @@ +fn main() { + let (x, y) = (); +//~^ ERROR mismatched types +//~| expected unit type `()` +//~| found tuple `(_, _)` +//~| expected `()`, found + return x; +} |