about summary refs log tree commit diff
path: root/tests/ui/fn/issue-80179.stderr
blob: 95158da3cff6cfeac684e8b76c691fbdb1505c0e (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
28
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
  --> $DIR/issue-80179.rs:10:24
   |
LL | fn returns_fn_ptr() -> _ {
   |                        ^ not allowed in type signatures
   |
help: replace with the correct return type
   |
LL - fn returns_fn_ptr() -> _ {
LL + fn returns_fn_ptr() -> fn() -> i32 {
   |

error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
  --> $DIR/issue-80179.rs:18:25
   |
LL | fn returns_closure() -> _ {
   |                         ^ not allowed in type signatures
   |
   = note: for more information on `Fn` traits and closure types, see https://doc.rust-lang.org/book/ch13-01-closures.html
help: replace with an appropriate return type
   |
LL - fn returns_closure() -> _ {
LL + fn returns_closure() -> impl Fn() -> i32 {
   |

error: aborting due to 2 previous errors

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