Skip to content

Instantly share code, notes, and snippets.

@sbeckeriv
Created September 3, 2016 18:19
Show Gist options
  • Save sbeckeriv/f784c4f5fae3f5efdf6ba7255b75064f to your computer and use it in GitHub Desktop.
Save sbeckeriv/f784c4f5fae3f5efdf6ba7255b75064f to your computer and use it in GitHub Desktop.
Compiling image_gen v0.1.0 (file:///Users/becker/trash/image_gen)
src/main.rs:25:26: 25:41 error: the trait bound `&image::ImageBuffer<image::Rgba<u8>, std::vec::Vec<u8>>: img_hash::HashImage` is not satisfied [E0277]
src/main.rs:25 let generated_hash = ImageHash::hash(&generated, 8, HashType::Gradient);
^~~~~~~~~~~~~~~
src/main.rs:25:26: 25:41 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:25:26: 25:41 help: the following implementations were found:
src/main.rs:25:26: 25:41 help: <image::ImageBuffer<image::Luma<u8>, std::vec::Vec<u8>> as img_hash::HashImage>
src/main.rs:25:26: 25:41 help: <image::ImageBuffer<image::LumaA<u8>, std::vec::Vec<u8>> as img_hash::HashImage>
src/main.rs:25:26: 25:41 help: <image::ImageBuffer<image::Rgb<u8>, std::vec::Vec<u8>> as img_hash::HashImage>
src/main.rs:25:26: 25:41 help: <image::ImageBuffer<image::Rgba<u8>, std::vec::Vec<u8>> as img_hash::HashImage>
src/main.rs:25:26: 25:41 note: required by `img_hash::ImageHash::hash`
error: aborting due to previous error
error: Could not compile `image_gen`.
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