about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-02-02 15:09:44 +0300
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-10-25 13:25:51 +0000
commit8b494f427cb06896996fb02ac8c3ff745fde4d15 (patch)
treefd3fc72ec3dee328bb0bc51a395722f00b4e70a6 /tests/rustdoc-js-std/parser-errors.js
parent1481fd964bac3c750c7e1b21206fdaa60346c456 (diff)
downloadrust-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