summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/recover-ge-as-fat-arrow.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/recover-ge-as-fat-arrow.stderr')
-rw-r--r--tests/ui/parser/issues/recover-ge-as-fat-arrow.stderr25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/recover-ge-as-fat-arrow.stderr b/tests/ui/parser/issues/recover-ge-as-fat-arrow.stderr
new file mode 100644
index 000000000..2df5cca24
--- /dev/null
+++ b/tests/ui/parser/issues/recover-ge-as-fat-arrow.stderr
@@ -0,0 +1,25 @@
+error: expected one of `...`, `..=`, `..`, `=>`, `if`, or `|`, found `>=`
+ --> $DIR/recover-ge-as-fat-arrow.rs:4:11
+ |
+LL | 1 >= {}
+ | ^^
+ | |
+ | expected one of `...`, `..=`, `..`, `=>`, `if`, or `|`
+ | help: use a fat arrow to start a match arm: `=>`
+
+error[E0308]: mismatched types
+ --> $DIR/recover-ge-as-fat-arrow.rs:5:29
+ |
+LL | _ => { let _: u16 = 2u8; }
+ | --- ^^^ expected `u16`, found `u8`
+ | |
+ | expected due to this
+ |
+help: change the type of the numeric literal from `u8` to `u16`
+ |
+LL | _ => { let _: u16 = 2u16; }
+ | ~~~
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.