about summary refs log tree commit diff
path: root/tests/ui/fn/suggest-return-future.stderr
blob: 7c097e5067132a6392d3bf9df120c3a35dea7232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
   |
LL - fn foo() -> _ {
LL + fn foo() -> 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
   |
LL - fn bar() -> _ {
LL + fn bar() -> impl Future<Output = i32> {
   |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0121`.