Skip to content

Instantly share code, notes, and snippets.

@igalic
Created May 18, 2020 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igalic/ae41ec328a2a443fa02214a4b0f19281 to your computer and use it in GitHub Desktop.
Save igalic/ae41ec328a2a443fa02214a4b0f19281 to your computer and use it in GitHub Desktop.
Compiling webfinger v0.5.0 (/home/meena/src/ap/webfinger)
error: expected one of `!`, `(`, `;`, `=`, `?`, `for`, `where`, lifetime, or path, found `&`
--> src/tests.rs:188:16
|
187 | impl AsyncResolver for MyAsyncResolver {
| - while parsing this item list starting here
188 | type Repo: &'static str + Send;
| ^ expected one of 9 possible tokens
...
215 | }
| - the item list ends here
error[E0046]: not all trait items implemented, missing: `Repo`, `instance_domain`, `find`
--> src/tests.rs:187:1
|
187 | impl AsyncResolver for MyAsyncResolver {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Repo`, `instance_domain`, `find` in implementation
|
::: src/async_trait.rs:10:5
|
10 | type Repo: Send;
| ---------------- `Repo` from trait
11 | /// Returns the domain name of the current instance.
12 | async fn instance_domain<'a>(&self) -> &'a str;
| ----------------------------------------------- `instance_domain` from trait
...
20 | / async fn find(
21 | | &self,
22 | | prefix: Prefix,
23 | | acct: String,
24 | | resource_repo: Self::Repo,
25 | | ) -> Result<Webfinger, ResolverError>;
| |__________________________________________- `find` from trait
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0046`.
error: could not compile `webfinger`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment