dtolnay / dtolnay/reflect

Cannot return Self type

Open
#38 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
780
Forks
23
PR merge metrics
No merged PRs in 30d

Description

It seems there are five return types supported currently. This code prints error message.
How can I return the Self type?
Thanks for the great project!

```
expected one of: parentheses, `&`, `dyn`, identifier
```

```
reflect::library! {
extern crate aa {
mod provider {
type ProviderContext;
type AA;

trait Provider {
fn build(&mut ProviderContext) -> Self;
}
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.