diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-02-02 15:09:44 +0300 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-10-25 13:25:51 +0000 |
| commit | 8b494f427cb06896996fb02ac8c3ff745fde4d15 (patch) | |
| tree | fd3fc72ec3dee328bb0bc51a395722f00b4e70a6 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 1481fd964bac3c750c7e1b21206fdaa60346c456 (diff) | |
| download | rust-8b494f427cb06896996fb02ac8c3ff745fde4d15.tar.gz rust-8b494f427cb06896996fb02ac8c3ff745fde4d15.zip | |
Allow `impl Fn() -> impl Trait` in return position
This allows writing the following function signatures: ```rust fn f0() -> impl Fn() -> impl Trait; fn f3() -> &'static dyn Fn() -> impl Trait; ``` These signatures were already allowed for common traits and associated types, there is no reason why `Fn*` traits should be special in this regard.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
