summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/suggest-return-future.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/fn/suggest-return-future.stderr')
-rw-r--r--tests/ui/fn/suggest-return-future.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/fn/suggest-return-future.stderr b/tests/ui/fn/suggest-return-future.stderr
new file mode 100644
index 000000000..a4c8b5d8c
--- /dev/null
+++ b/tests/ui/fn/suggest-return-future.stderr
@@ -0,0 +1,21 @@
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
+ --> $DIR/suggest-return-future.rs:7:13
+ |
+LL | fn foo() -> _ {
+ | ^
+ | |
+ | not allowed in type signatures
+ | help: replace with an appropriate return type: `impl Future<Output = i32>`
+
+error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
+ --> $DIR/suggest-return-future.rs:15:13
+ |
+LL | fn bar() -> _ {
+ | ^
+ | |
+ | not allowed in type signatures
+ | help: replace with an appropriate return type: `impl Future<Output = i32>`
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0121`.