summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/return-bindings-multi.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/return-bindings-multi.stderr')
-rw-r--r--src/test/ui/suggestions/return-bindings-multi.stderr34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/return-bindings-multi.stderr b/src/test/ui/suggestions/return-bindings-multi.stderr
new file mode 100644
index 000000000..738e3f2f4
--- /dev/null
+++ b/src/test/ui/suggestions/return-bindings-multi.stderr
@@ -0,0 +1,34 @@
+error[E0308]: mismatched types
+ --> $DIR/return-bindings-multi.rs:1:17
+ |
+LL | fn a(i: i32) -> i32 {
+ | - ^^^ expected `i32`, found `()`
+ | |
+ | implicitly returns `()` as its body has no tail or `return` expression
+ |
+note: consider returning one of these bindings
+ --> $DIR/return-bindings-multi.rs:1:6
+ |
+LL | fn a(i: i32) -> i32 {
+ | ^
+LL |
+LL | let j = 2i32;
+ | ^
+
+error[E0308]: mismatched types
+ --> $DIR/return-bindings-multi.rs:6:25
+ |
+LL | fn b(i: i32, j: i32) -> i32 {}
+ | - ^^^ expected `i32`, found `()`
+ | |
+ | implicitly returns `()` as its body has no tail or `return` expression
+ |
+note: consider returning one of these bindings
+ --> $DIR/return-bindings-multi.rs:6:6
+ |
+LL | fn b(i: i32, j: i32) -> i32 {}
+ | ^ ^
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0308`.