-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot declare a satisfiable feed reference #69
Comments
@telamon no worries, it's always okay to ask (: Getting a better idea of what you're looking at would be helpful. I'm not sure what you're running into. Screenshots would be good, text output would be better, a git repo that can be cloned and run to reproduce your error would be best. Thanks! |
@yoshuawuyts Thank you for the reply. Here is an example I ended up with following compiler errors: use hypercore::Feed;
use random_access::RandomAccess;
use std::path::PathBuf;
#[test]
fn it_works() {
let storage_path = PathBuf::from("/tmp/a");
let mut feed: Feed<RandomAccess<Error = failure::Error>> = hypercore::Feed::new(&storage_path).unwrap();
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// I simply can't figure out the correct type format to satisfy the compiler.
} The above snippet produces the following error:
Omitting Ultimately I would just like to define a struct with a feed...
|
Question
Your Environment
Question
So I'm not sure if I should ask this question here. I have tried to find help elsewhere but writing here as a last-resort.
I'm new to rust and I have been picking up the language at a steady pace.
But there's one issue that I've been struggling with to the point of insanity.
How do you store a
hypercore::Feed
in a struct or define a function that can take a feed as a parameter?I've literally spent a week trying all kinds of exotic declaration to satisfy the compiler traits, but to no avail..
Again humble apologies for asking this here, please help!
The text was updated successfully, but these errors were encountered: