summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-109188.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/issue-109188.stderr')
-rw-r--r--tests/ui/closures/issue-109188.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/closures/issue-109188.stderr b/tests/ui/closures/issue-109188.stderr
new file mode 100644
index 000000000..d52b51629
--- /dev/null
+++ b/tests/ui/closures/issue-109188.stderr
@@ -0,0 +1,19 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-109188.rs:17:13
+ |
+LL | let Either::One(_t) = x;
+ | ^^^^^^^^^^^^^^^ - this expression has type `()`
+ | |
+ | expected `()`, found `Either`
+
+error[E0308]: mismatched types
+ --> $DIR/issue-109188.rs:18:13
+ |
+LL | let Either::Two(_t) = x;
+ | ^^^^^^^^^^^^^^^ - this expression has type `()`
+ | |
+ | expected `()`, found `Either`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.