summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0069.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0069.stderr')
-rw-r--r--tests/ui/error-codes/E0069.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0069.stderr b/tests/ui/error-codes/E0069.stderr
new file mode 100644
index 000000000..ff9bbe01d
--- /dev/null
+++ b/tests/ui/error-codes/E0069.stderr
@@ -0,0 +1,11 @@
+error[E0069]: `return;` in a function whose return type is not `()`
+ --> $DIR/E0069.rs:2:5
+ |
+LL | fn foo() -> u8 {
+ | -- expected `u8` because of this return type
+LL | return;
+ | ^^^^^^ return type is not `()`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0069`.