summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/type-mismatch-error.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generator/type-mismatch-error.stderr')
-rw-r--r--src/test/ui/generator/type-mismatch-error.stderr19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/generator/type-mismatch-error.stderr b/src/test/ui/generator/type-mismatch-error.stderr
new file mode 100644
index 000000000..8f5949533
--- /dev/null
+++ b/src/test/ui/generator/type-mismatch-error.stderr
@@ -0,0 +1,19 @@
+error[E0308]: `if` and `else` have incompatible types
+ --> $DIR/type-mismatch-error.rs:16:17
+ |
+LL | / if false {
+LL | | yield ();
+ | | ---------
+ | | | |
+ | | | help: consider removing this semicolon
+ | | expected because of this
+LL | | } else {
+LL | | a
+ | | ^ expected `()`, found `u8`
+LL | |
+LL | | }
+ | |_____________- `if` and `else` have incompatible types
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.