summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-13466.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-13466.stderr')
-rw-r--r--tests/ui/issues/issue-13466.stderr26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-13466.stderr b/tests/ui/issues/issue-13466.stderr
new file mode 100644
index 000000000..c78466f4e
--- /dev/null
+++ b/tests/ui/issues/issue-13466.stderr
@@ -0,0 +1,26 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-13466.rs:8:9
+ |
+LL | let _x: usize = match Some(1) {
+ | ------- this expression has type `Option<{integer}>`
+LL | Ok(u) => u,
+ | ^^^^^ expected enum `Option`, found enum `Result`
+ |
+ = note: expected enum `Option<{integer}>`
+ found enum `Result<_, _>`
+
+error[E0308]: mismatched types
+ --> $DIR/issue-13466.rs:14:9
+ |
+LL | let _x: usize = match Some(1) {
+ | ------- this expression has type `Option<{integer}>`
+...
+LL | Err(e) => panic!(e)
+ | ^^^^^^ expected enum `Option`, found enum `Result`
+ |
+ = note: expected enum `Option<{integer}>`
+ found enum `Result<_, _>`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.