summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/issue-87461.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/closures/issue-87461.stderr45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/test/ui/closures/issue-87461.stderr b/src/test/ui/closures/issue-87461.stderr
new file mode 100644
index 000000000..0e788a16e
--- /dev/null
+++ b/src/test/ui/closures/issue-87461.stderr
@@ -0,0 +1,45 @@
+error[E0308]: mismatched types
+ --> $DIR/issue-87461.rs:10:8
+ |
+LL | Ok(())
+ | -- ^^ expected `u16`, found `()`
+ | |
+ | arguments to this enum variant are incorrect
+ |
+note: tuple variant defined here
+ --> $SRC_DIR/core/src/result.rs:LL:COL
+ |
+LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
+ | ^^
+
+error[E0308]: mismatched types
+ --> $DIR/issue-87461.rs:17:8
+ |
+LL | Ok(())
+ | -- ^^ expected `u16`, found `()`
+ | |
+ | arguments to this enum variant are incorrect
+ |
+note: tuple variant defined here
+ --> $SRC_DIR/core/src/result.rs:LL:COL
+ |
+LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
+ | ^^
+
+error[E0308]: mismatched types
+ --> $DIR/issue-87461.rs:26:12
+ |
+LL | Ok(())
+ | -- ^^ expected `u16`, found `()`
+ | |
+ | arguments to this enum variant are incorrect
+ |
+note: tuple variant defined here
+ --> $SRC_DIR/core/src/result.rs:LL:COL
+ |
+LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
+ | ^^
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0308`.