rust/tests/ui/fn/issue-80179.stderr

24 lines
997 B
Plaintext
Raw Normal View History

error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
2020-12-22 13:25:37 -06:00
--> $DIR/issue-80179.rs:10:24
|
LL | fn returns_fn_ptr() -> _ {
| ^
| |
| not allowed in type signatures
| help: replace with the correct return type: `fn() -> i32`
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
2020-12-22 13:25:37 -06:00
--> $DIR/issue-80179.rs:18:25
|
LL | fn returns_closure() -> _ {
2022-12-27 17:56:46 -06:00
| ^
| |
| not allowed in type signatures
| help: replace with an appropriate return type: `impl Fn() -> i32`
2023-01-03 18:26:53 -06:00
|
= note: for more information on `Fn` traits and closure types, see https://doc.rust-lang.org/book/ch13-01-closures.html
2020-12-22 13:25:37 -06:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0121`.