2023-01-14 16:55:27 -06:00
|
|
|
error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
|
|
|
|
--> $DIR/suggest-fn-ptr-for-fn-item-in-fn-ret.rs:7:13
|
|
|
|
|
|
|
|
|
LL | fn bar() -> _ { Wrapper(foo) }
|
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| not allowed in type signatures
|
|
|
|
| help: replace with the correct return type: `Wrapper<fn()>`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-01-14 16:55:27 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0121`.
|